ExecutionContextPrincipal プロパティ

ストアド プロシージャの実行コンテキストのプリンシパルを取得します。値の設定も可能です。

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

構文

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

value = instance.ExecutionContextPrincipal

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

プロパティ値

型: System. . :: . .String
オブジェクトが実行されるサーバー プリンシパルのコンテキストを示す String 値です。

説明

ExecutionContext プロパティが ExecuteAsPrincipal に設定されている場合、ExecutionContextPrincipal プロパティには値が必要です。