Previous in Contents Next in Contents

AdminSite.IsValidName Method

The IsValidName method returns True if the specified Commerce Server site short name is valid. The valid characters and length for a Web site name are determined by the restrictions on the names of Microsoft® SQL Server™ tables. In addition, a short name must not conflict with another short name on the server.

Before actually creating a site, this method is used to make sure the short name of the site is valid. The name must conform to a number of rules for forming valid names in a number of environments. For example, Commerce Server appends a site's short name to database tables and to generated pages.

Syntax

AdminSite.IsValidName(Name, ServerInstance)

Parameters

Name
The short name being tested.
ServerInstance
The Web site (an instance of the Web server).

Remarks

An object's IsValidName method can be called without its Initialize or Create methods being called.


© 1997-2000 Microsoft Corporation. All rights reserved.