共用方式為


ExecutionContext 屬性

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

命名空間:  Microsoft.SqlServer.Management.Smo
組件:  Microsoft.SqlServer.Smo (在 Microsoft.SqlServer.Smo.dll 中)

語法

'宣告
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.Standalone Or SfcPropertyFlags.SqlAzureDatabase)> _
Public Property ExecutionContext As DatabaseDdlTriggerExecutionContext
    Get
    Set
'用途
Dim instance As DatabaseDdlTrigger
Dim value As DatabaseDdlTriggerExecutionContext

value = instance.ExecutionContext

instance.ExecutionContext = value
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)]
public DatabaseDdlTriggerExecutionContext ExecutionContext { get; set; }
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::Standalone|SfcPropertyFlags::SqlAzureDatabase)]
public:
property DatabaseDdlTriggerExecutionContext ExecutionContext {
    DatabaseDdlTriggerExecutionContext get ();
    void set (DatabaseDdlTriggerExecutionContext value);
}
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.Standalone|SfcPropertyFlags.SqlAzureDatabase)>]
member ExecutionContext : DatabaseDdlTriggerExecutionContext with get, set
function get ExecutionContext () : DatabaseDdlTriggerExecutionContext
function set ExecutionContext (value : DatabaseDdlTriggerExecutionContext)

屬性值

型別:Microsoft.SqlServer.Management.Smo. . :: . .DatabaseDdlTriggerExecutionContext
A DatabaseDdlTriggerExecutionContext object that specifies the type of execution context that is used by the database DDL trigger.

備註

If you specify that the execution context type is [F:Microsoft.SqlServer.Management.Smo.DatabaseDdlTriggerExecutionContext.ExecuteAsUser,] you must also set the ExecutionContextUser property to specify which user to use.

範例

設定屬性