Partager via


Propriété MessageTypes

Represents a collection of MessageType objects. Each MessageType object represents a message type defined on the instance of Service Broker.

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

Syntaxe

'Déclaration
<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny,  _
    GetType(MessageType))> _
Public ReadOnly Property MessageTypes As MessageTypeCollection
    Get
'Utilisation
Dim instance As ServiceBroker
Dim value As MessageTypeCollection

value = instance.MessageTypes
[SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(MessageType))]
public MessageTypeCollection MessageTypes { get; }
[SfcObjectAttribute(SfcContainerRelationship::ObjectContainer, SfcContainerCardinality::ZeroToAny, 
    typeof(MessageType))]
public:
property MessageTypeCollection^ MessageTypes {
    MessageTypeCollection^ get ();
}
[<SfcObjectAttribute(SfcContainerRelationship.ObjectContainer, SfcContainerCardinality.ZeroToAny, 
    typeof(MessageType))>]
member MessageTypes : MessageTypeCollection
function get MessageTypes () : MessageTypeCollection

Valeur de propriété

Type : Microsoft.SqlServer.Management.Smo.Broker. . :: . .MessageTypeCollection
A MessageTypeCollection object that represents all the message types defined on the instance of Service Broker.