다음을 통해 공유


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.dll의 Microsoft.SqlServer.Smo

구문

‘선언
<SfcPropertyAttribute> _
Public Property ExecutionContext As DatabaseDdlTriggerExecutionContext
    Get
    Set
‘사용 방법
Dim instance As DatabaseDdlTrigger
Dim value As DatabaseDdlTriggerExecutionContext

value = instance.ExecutionContext

instance.ExecutionContext = value
[SfcPropertyAttribute]
public DatabaseDdlTriggerExecutionContext ExecutionContext { get; set; }
[SfcPropertyAttribute]
public:
property DatabaseDdlTriggerExecutionContext ExecutionContext {
    DatabaseDdlTriggerExecutionContext get ();
    void set (DatabaseDdlTriggerExecutionContext value);
}
[<SfcPropertyAttribute>]
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.

예제

속성 설정