Share via


IAdminSite::Initialize

Ee785373.c++_off(en-US,CS.10).gifEe785373.vb_on(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

HRESULT IAdminSite::Initialize(BSTRbstrInstance,BSTRbstrVDir);

Parameters

bstrInstance

[in] A numeric value, expressed as a BSTR that represents a Web site.

bstrVDir

[in] A BSTR that contains the Site Server 3.0 Commerce Edition site short name (virtual directory).

Return Values

This method returns an HRESULT indicating whether or not it completed successfully. See the Error Values section for more details.

Error Values

This method returns S_OK (0x00000000) to indicate success and standard COM HRESULT 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, which can be accessed using the API function GetErrorInfo. In particular, the GetDescription method of the IErrorInfo interface may return 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

IAdminSite::ReadDefaultProperties

IAdminSite::Create

IAdminSite::IsValidName


All rights reserved.