Partager via


ExecutionContext propriété

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

Espace de noms :  Microsoft.SqlServer.Management.Smo
Assembly :  Microsoft.SqlServer.Smo (dans Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<SfcPropertyAttribute> _
Public Property ExecutionContext As ServerDdlTriggerExecutionContext
    Get
    Set
'Utilisation
Dim instance As ServerDdlTrigger
Dim value As ServerDdlTriggerExecutionContext

value = instance.ExecutionContext

instance.ExecutionContext = value
[SfcPropertyAttribute]
public ServerDdlTriggerExecutionContext ExecutionContext { get; set; }
[SfcPropertyAttribute]
public:
property ServerDdlTriggerExecutionContext ExecutionContext {
    ServerDdlTriggerExecutionContext get ();
    void set (ServerDdlTriggerExecutionContext value);
}
[<SfcPropertyAttribute>]
member ExecutionContext : ServerDdlTriggerExecutionContext with get, set
function get ExecutionContext () : ServerDdlTriggerExecutionContext
function set ExecutionContext (value : ServerDdlTriggerExecutionContext)

Valeur de la propriété

Type : Microsoft.SqlServer.Management.Smo. . :: . .ServerDdlTriggerExecutionContext
A ServerDdlTriggerExecutionContext object that specifies the type of execution context used by the server DDL trigger.

Notes

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