IAdminSite::get_Directory, put_Directory

Ee797802.c++_off(en-US,CS.10).gifEe797802.vb_on(en-US,CS.10).gif

The Directory property is a read/write string that contains the currently registered Site Server 3.0 Commerce Edition site physical directory.

Definition

Get method:

HRESULT IAdminSite::get_Directory(BSTR*Directory);

Put method:

HRESULT IAdminSite::put_Directory(BSTRDirectory);

Parameters

Directory

[in] When putting the property, a BSTR that contains the name of the directory.
[out] When getting the property, the address of a BSTR used to return the name of the directory.

Return Values

These methods return an HRESULT indicating whether they completed successfully. See the Error Values section for more details.

Error Values

This property 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 valid characters and length for a Web site name are determined by the restrictions on the file system.

The Directory parameter contains valid data only if the property is accessed successfully.

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

See Also

AdminSite Object

IAdminSite::InitializeFromMDPath


All rights reserved.