We recommend using Visual Studio 2017

MessageSource Enumeration

The MessageSource enumeration contains constant values that specify which endpoint sent the message.

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

public enum MessageSource

Member nameDescription
InitiatorSpecifies the message was sent by the dialog initiator endpoint.
TargetSpecifies the message was sent by the target endpoint.
InitiatorAndTargetSpecifies the message was sent by either the initiator endpoint or the target endpoint.

The MessageSource enumerated class is served by the MessageSource property.