ServiceContract.Owner 属性

Gets or sets the owner of the service contract.

此 API 不符合 CLS。 

命名空间:  Microsoft.SqlServer.Management.Smo.Broker
程序集:  Microsoft.SqlServer.Smo(在 Microsoft.SqlServer.Smo.dll 中)

语法

声明
<CLSCompliantAttribute(False)> _
<SfcReferenceAttribute(GetType(ApplicationRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/ApplicationRole[@Name = '{2}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.Standalone)> _
<SfcReferenceAttribute(GetType(User), "Server[@Name = '{0}']/Database[@Name = '{1}']/User[@Name = '{2}']",  _
    )> _
<SfcReferenceAttribute(GetType(DatabaseRole), "Server[@Name = '{0}']/Database[@Name = '{1}']/Role[@Name = '{2}']",  _
    )> _
Public Property Owner As String 
    Get 
    Set
用法
Dim instance As ServiceContract 
Dim value As String 

value = instance.Owner

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

属性值

类型:System.String
A String value that specifies the owner of the service contract.

示例

Readme_ServiceBrokerConfiguration

请参阅

参考

ServiceContract 类

Microsoft.SqlServer.Management.Smo.Broker 命名空间

其他资源

开发 (Service Broker)

管理 Service Broker

概述 (Service Broker)