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.
AdminSite.Initialize(ServerInstance, VirtualDirectory)
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.
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")