AdminSite.Initialize

Ee824075.c++_on(en-US,CS.10).gifEe824075.vb_off(en-US,CS.10).gif

Use this method to initialize the AdminSite object so that information related to the Site Server 3.0 Commerce Edition site can be loaded. 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.

Definition

Sub Initialize(bstrInstance As String,bstrVDir As String)

Parameters

bstrInstance

A numeric value, expressed as a String that represents a Web site.

bstrVDir

A String that contains the Site Server 3.0 Commerce Edition site short name (virtual directory).

Return Values

None.

Error Values

This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.

Remarks

You must initialize an AdminSite object before you can use any other methods of the object (except Create and IsValidName). An object created by the Create method of the AdminSite object is initialized automatically and does not need an explicit call to the Initialize method.

See Also

AdminSite Object

AdminSite.ReadDefaultProperties

AdminSite.Create

AdminSite.IsValidName


All rights reserved.