ServerDdlTrigger.ExecutionContext ServerDdlTrigger.ExecutionContext ServerDdlTrigger.ExecutionContext Property

Definition

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

public:
 property Microsoft::SqlServer::Management::Smo::ServerDdlTriggerExecutionContext ExecutionContext { Microsoft::SqlServer::Management::Smo::ServerDdlTriggerExecutionContext get(); void set(Microsoft::SqlServer::Management::Smo::ServerDdlTriggerExecutionContext value); };
[Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcProperty(Microsoft.SqlServer.Management.Sdk.Sfc.Metadata.SfcPropertyFlags.Standalone)]
public Microsoft.SqlServer.Management.Smo.ServerDdlTriggerExecutionContext ExecutionContext { get; set; }
Public Property ExecutionContext As ServerDdlTriggerExecutionContext
Property Value

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

Examples

Creating, Altering, and Removing Triggers

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.

Applies to