A Sandcastle Documented Class Library

# CredentialContext Execute Method (Action)

Executes the provided delegate under the context of the credentials.

Namespace: Dundas.BI.Data.DataRetrieval
Assembly: Dundas.BI.Core (in Dundas.BI.Core.dll) Version: 2.0.0.0 (10.0.0.1002)
Syntax
C#
VB
C++
F#
Copy

    public virtual void Execute(
    	Action action
    )

    Public Overridable Sub Execute (
    	action As Action
    )

    public:
    virtual void Execute(
    	Action^ action
    )

    abstract Execute :
            action : Action -> unit
    override Execute :
            action : Action -> unit

#### Parameters

action
  Type: System
  Action
  The Action to run.

Exceptions

Exception | Condition
--- | ---
ArgumentNullException | action is .

Remarks
If IsContextLinkedToCurrentThread is
for the corresponding credential provider, any code which needs to be run under the context of the credentials must be done so using this method or one of its overloads.
See Also

#### Reference

CredentialContext Class
Execute Overload
Dundas.BI.Data.DataRetrieval Namespace
DataSourceCredentialProvider
IsDelegateExecutionRequired