次の方法で共有


ServiceQueue.ExecutionContextPrincipal プロパティ

アクティブ化されたプロシージャのサーバー プリンシパルを取得または設定します。

この API は、CLS に準拠していません。 

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

構文

'宣言
<SfcReferenceAttribute(GetType(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<CLSCompliantAttribute(False)> _
Public Property ExecutionContextPrincipal As String 
    Get 
    Set
'使用
Dim instance As ServiceQueue 
Dim value As String 

value = instance.ExecutionContextPrincipal

instance.ExecutionContextPrincipal = value
[SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags.Standalone)]
[CLSCompliantAttribute(false)]
public string ExecutionContextPrincipal { get; set; }
[SfcReferenceAttribute(typeof(User), L"Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags::Standalone)]
[CLSCompliantAttribute(false)]
public:
property String^ ExecutionContextPrincipal {
    String^ get ();
    void set (String^ value);
}
[<SfcReferenceAttribute(typeof(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.Standalone)>]
[<CLSCompliantAttribute(false)>]
member ExecutionContextPrincipal : string with get, set
function get ExecutionContextPrincipal () : String 
function set ExecutionContextPrincipal (value : String)

プロパティ値

型: System.String
アクティブ化されたプロシージャのサーバー プリンシパルを示す String 値です。

使用例

Readme_ServiceBrokerConfiguration

関連項目

参照

ServiceQueue クラス

Microsoft.SqlServer.Management.Smo.Broker 名前空間

その他の技術情報

開発 (Service Broker)

Service Broker の管理

概要 (Service Broker)

CREATE QUEUE (Transact-SQL)