ExecutionContext プロパティ

サーバー DDL トリガー、実行コンテキスト自体、呼び出し元、または指定したログインで使用される実行コンテキストの種類を取得または設定します。

名前空間:  Microsoft.SqlServer.Management.Smo
アセンブリ:  Microsoft.SqlServer.Smo (Microsoft.SqlServer.Smo.dll)

構文

'宣言
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
Public Property ExecutionContext As ServerDdlTriggerExecutionContext
    Get
    Set
'使用
Dim instance As ServerDdlTrigger
Dim value As ServerDdlTriggerExecutionContext

value = instance.ExecutionContext

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

プロパティ値

型: Microsoft.SqlServer.Management.Smo. . :: . .ServerDdlTriggerExecutionContext
サーバー DDL トリガーで使用される実行コンテキストの種類を示す ServerDdlTriggerExecutionContext オブジェクトです。

説明

実行コンテキストの種類に ExecuteAsLogin を指定する場合は、ExecutionContextLogin プロパティを設定して、使用するログインを指定する必要もあります。