AdminSite.Initialize Method

The Initialize method initializes the AdminSite object to load information related to the Commerce Server site. The site is uniquely identified using the site short name and the server instance. The ReadDefaultProperties method uses this information to load the site properties.

Syntax

AdminSite.Initialize(ServerInstance, VirtualDirectory)

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).

Remarks

An object must be initialized before any of its other methods (except Create and IsValidName) can be used. An object that has been created by the Create method of the AdminSite object is automatically initialized and does not need an explicit call to its Initialize method.

Example

The following example creates and initializes an AdminSite object for the Clocktower site, which is in the default Web site:

Set AdminSite =Server.CreateObject("AdminSite")
Call AdminSite.Initialize("1", "Clocktower")
 

© 1997-1998 Microsoft Corporation. All rights reserved.