IADOSecurity::SetURL

Sets the source URL of the current document.

Syntax

HRESULT SetURL(
    BSTR bstrURL);

Parameters

  • bstrURL
    [in]

    A string value that contains the URL of the current provider.

Return Code

  • S_OK
    The method succeeded.

  • E_OUTOFMEMORY
    The provider was not able to allocate sufficient memory to set the URL.

  • E_FAIL
    A provider-specific error occurred.

  • E_INVALIDARG
    A null pointer was used.

Comments

This value is passed from ActiveX Data Objects (ADO) to the provider.

See Also

Reference

IADOSecurity

IADOSecurity::SetSafe