Udostępnij przez


ServerDdlTrigger.ExecutionContext Property

Gets or sets the execution context type used by server DDL trigger, itself, the caller, or a specified login.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

Syntax

'Deklaracja
<SfcPropertyAttribute> _
Public Property ExecutionContext As ServerDdlTriggerExecutionContext
[SfcPropertyAttribute] 
public ServerDdlTriggerExecutionContext ExecutionContext { get; set; }
[SfcPropertyAttribute] 
public:
property ServerDdlTriggerExecutionContext ExecutionContext {
    ServerDdlTriggerExecutionContext get ();
    void set (ServerDdlTriggerExecutionContext value);
}
/** @property */
public ServerDdlTriggerExecutionContext get_ExecutionContext ()

/** @property */
public void set_ExecutionContext (ServerDdlTriggerExecutionContext value)
public function get ExecutionContext () : ServerDdlTriggerExecutionContext

public function set ExecutionContext (value : ServerDdlTriggerExecutionContext)

Property Value

A ServerDdlTriggerExecutionContext object that specifies the type of execution context used by the server DDL trigger.

Remarks

If you specify that the execution context type is ExecuteAsLogin then you must also set the ExecutionContextLogin property to specify which login to use.

Thread Safety

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.

Target Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server.