다음을 통해 공유


Name 속성

Gets or sets the name of the service contract mapping.

이 API는 CLS 규격이 아닙니다. CLS 규격 대체 항목은 입니다.

네임스페이스:  Microsoft.SqlServer.Management.Smo.Broker
어셈블리:  Microsoft.SqlServer.Smo(Microsoft.SqlServer.Smo.dll)

구문

‘선언
<SfcKeyAttribute()> _
<SfcReferenceAttribute(GetType(ServiceContract), "Server[@Name = '{0}']/Database[@Name = '{1}']/ServiceBroker/ServiceContract[@Name='{2}']",  _
    )> _
<SfcPropertyAttribute(SfcPropertyFlags.None Or SfcPropertyFlags.ReadOnlyAfterCreation Or SfcPropertyFlags.Standalone)> _
<CLSCompliantAttribute(False)> _
Public Overrides Property Name As String
    Get
    Set
‘사용 방법
Dim instance As ServiceContractMapping
Dim value As String

value = instance.Name

instance.Name = value
[SfcKeyAttribute()]
[SfcReferenceAttribute(typeof(ServiceContract), "Server[@Name = '{0}']/Database[@Name = '{1}']/ServiceBroker/ServiceContract[@Name='{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)]
[CLSCompliantAttribute(false)]
public override string Name { get; set; }
[SfcKeyAttribute()]
[SfcReferenceAttribute(typeof(ServiceContract), L"Server[@Name = '{0}']/Database[@Name = '{1}']/ServiceBroker/ServiceContract[@Name='{2}']", 
    )]
[SfcPropertyAttribute(SfcPropertyFlags::None|SfcPropertyFlags::ReadOnlyAfterCreation|SfcPropertyFlags::Standalone)]
[CLSCompliantAttribute(false)]
public:
virtual property String^ Name {
    String^ get () override;
    void set (String^ value) override;
}
[<SfcKeyAttribute()>]
[<SfcReferenceAttribute(typeof(ServiceContract), "Server[@Name = '{0}']/Database[@Name = '{1}']/ServiceBroker/ServiceContract[@Name='{2}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
[<CLSCompliantAttribute(false)>]
abstract Name : string with get, set
[<SfcKeyAttribute()>]
[<SfcReferenceAttribute(typeof(ServiceContract), "Server[@Name = '{0}']/Database[@Name = '{1}']/ServiceBroker/ServiceContract[@Name='{2}']", 
    )>]
[<SfcPropertyAttribute(SfcPropertyFlags.None|SfcPropertyFlags.ReadOnlyAfterCreation|SfcPropertyFlags.Standalone)>]
[<CLSCompliantAttribute(false)>]
override Name : string with get, set
override function get Name () : String
override function set Name (value : String)

속성 값

유형: System. . :: . .String
A String value that specifies the name of the service contract mapping.