AttachSenderId Property (Message)
Gets or sets a value that indicates whether the sender ID should be attached to the message.
Syntax
'Declaration <MessagingDescriptionAttribute("Indicates if the SenderId is to be or has been attached to the message.")> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <ReadOnlyAttribute(True)> Public Property AttachSenderId As Boolean
'Usage Dim instance As Message Dim value As Boolean instance.AttachSenderId = value value = instance.AttachSenderId
[MessagingDescription("Indicates if the SenderId is to be or has been attached to the message.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] public bool AttachSenderId {get; set;}
[MessagingDescription("Indicates if the SenderId is to be or has been attached to the message.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] public: property bool AttachSenderId { bool get(); void set ( bool value); }
Property Value
true if the SenderId should be attached to the message; otherwise, false. The default is true.Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message queue is filtered to ignore the AttachSenderId property. |
Requirements
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2
See Also