IMSCSStandardSManager_3_0::InitManager

Ee810324.c++_off(en-US,CS.10).gifEe810324.vb_on(en-US,CS.10).gif

Use this method to initialize the StandardSManager object to the specified site name and mode.

Definition

HRESULT IMSCSStandardSManager_3_0::InitManager(BSTRbstrStoreKey,BSTRbstrMode);

Parameters

bstrStoreKey

[in] A BSTR that contains the name of the site.

bstrMode

[in] A BSTR that indicates how user information is to be stored. For more information about initialization modes, see the Remarks section.

Return Values

This method returns an HRESULT indicating whether 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

The bstrMode parameter can take the following values:

Mode Behavior
Cookie The PutShopperID method stores the shopper ID in a cookie on the client system. The GetShopperID method retrieves this cookie.
url The PutShopperID method appends the shopper ID to the URL, using MCSSIDUrlKey as the name part of the URL variable. The GetShopperID method retrieves the shopper ID from the URL.
Cookieurl The PutShopperID method stores the shopper ID in a cookie on the client system and in the URL. The GetShopperID method first attempts to retrieve the shopper ID from the cookie, and then from the URL.
Urlcookie The PutShopperID method stores the shopper ID in a URL, and stores it as a cookie on the client system. The GetShopperID method first attempts to retrieve the shopper ID from the URL, then from the cookie.

This object is only included for purposes of backward compatibility with Site Server 3.0 Commerce Edition.

For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.

See Also

StandardSManager Object

IMSCSStandardSManager_3_0::get_Mode, put_Mode

IMSCSStandardSManager_3_0::PutShopperId


All rights reserved.