Propriété ServiceContractMapping.Name

Gets or sets the name of the service contract mapping.

Cette API n'est pas conforme CLS. L'alternative conforme CLS est .

Espace de noms :  Microsoft.SqlServer.Management.Smo.Broker
Assembly :  Microsoft.SqlServer.Smo (en Microsoft.SqlServer.Smo.dll)

Syntaxe

'Déclaration
<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
'Utilisation
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)

Valeur de propriété

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

Voir aussi

Référence

ServiceContractMapping Classe

Espace de noms Microsoft.SqlServer.Management.Smo.Broker

Autres ressources

Développement (Service Broker)

Gestion de Service Broker

Vue d'ensemble (Service Broker)