AdminSite.Create Method
The Create method creates a Commerce Server site and optionally creates an application and the Config\SQL\SqlSvr and Config\SQL\Oracle subdirectories.
Syntax
AdminSite.Create(ServerInstance, VirtualDirectory, Directory, IsApplication, IsCommerceSite)
Parameters
-
ServerInstance
-
Numeric value expressed as a string. Represents a Web site (an instance of the Web server). To obtain a list of server instances, use the GetWebSites method of the AdminWebServer object. For the default Web site, use "1".
-
VirtualDirectory
-
String. The Commerce Server site short name (virtual directory).
-
Directory
-
String. The physical directory where you want the site.
-
IsApplication
-
Boolean. If True, the application is created for the site (this is the same as launching Internet Service Manager, selecting a virtual directory, viewing its properties, and then in the Application Settings section on the Virtual Directory tab, clicking Create). This setting must be True for a Commerce Server site.
-
IsCommerceSite
-
Boolean. If True, the method marks the site for administration by Commerce Server and creates the Directory\Config\SQL\SqlSvr and Directory\Config\SQL\Oracle subdirectories. If False, creates the top level Directory only.
Example
The following example calls the AdminSite object's Create method to create an entry in the site object namespace. The SzS
ite
argument contains the site short name, and szSiteRoot
contains the physical directory.
AdminSite.Create "1", szSite, szSiteRoot, true, true
© 1997-1998 Microsoft Corporation. All rights reserved.