IADOSecurity::SetSafe

Sets a boolean value that indicates whether the provider is in a safe for scripting environment.

Syntax

HRESULT SetSafe(
    BOOL fSafe);

Parameters

  • fSafe
    [in]

    If set to true, the provider must be specified as safe for scripting.

Return Code

  • S_OK
    The method succeeded.

  • E_FAIL
    A provider-specific error occurred.

Comments

For more information, see the safe for scripting guidelines on MSDN.

See Also

Reference

IADOSecurity

IADOSecurity::SetURL