次の方法で共有


ExecutionContextLogin プロパティ

サーバー DDL トリガが実行されるコンテキストでログインを取得します。値の設定も可能です。

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

構文

'宣言
<SfcPropertyAttribute> _
Public Property ExecutionContextLogin As String
    Get
    Set
'使用
Dim instance As ServerDdlTrigger
Dim value As String

value = instance.ExecutionContextLogin

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

プロパティ値

型: System. . :: . .String
サーバー DDL トリガを発生させるイベントを示す ServerDdlTriggerEventSet オブジェクトです。

説明

このプロパティは、ExecutionContext プロパティが ExecuteAsLogin に設定されている場合にのみ必要です。