Share via


MessageTypeMapping.Name Property

Gets or sets the name of the message type mapping.

This API is not CLS-compliant. The CLS-compliant alternative is .

Namespace:  Microsoft.SqlServer.Management.Smo.Broker
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

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

value = instance.Name

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

Property Value

Type: System.String
A String value that specifies the name of the message type mapping.