Proprietà ServiceContractMapping.Name

Gets or sets the name of the service contract mapping.

Questa API non è conforme a CLS. L'alternativa conforme a CLS è .

Spazio dei nomi  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Sintassi

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

value = instance.Name

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

Valore proprietà

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

Vedere anche

Riferimento

ServiceContractMapping Classe

Spazio dei nomi Microsoft.SqlServer.Management.Smo.Broker

Altre risorse

Sviluppo (Service Broker)

Gestione di Service Broker

Panoramica (Service Broker)