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.
AdminSite.IsValidName(Name, ServerInstance)
An object's IsValidName method can be called without its Initialize or Create methods being called.