다음을 통해 공유


StoreGuidFromURL Method

Topic Last Modified: 2006-06-13

This method returns the globally unique identifier (GUID) of the store that contains the item specified by the URL.

Applies To

IStoreGuidFromURL Interface

Type Library

EXOLEDB Type Library

DLL Implemented In

EXOLEDB.DLL

Syntax

Function StoreGuidFromURL(    bstrURL As String) As String
HRESULT StoreGuidFromURL
(
        BSTR bstrURL,
        BSTR* pbstrGuid
);

Parameters

  • bstrURL
    On successful return, contains the GUID of the store.
  • pbstrGuid
    The GUID of the store returned as a reference to a BSTR.

Return Value

Returns S_OK if successful, or an error value otherwise.

Remarks

This method is useful when the store GUID is required for registration, such as when Registering for Store-Wide Events.

For CoClass information, see the StoreGuidFromURL CoClass.