Label Property (Message)
Gets or sets an application-defined Unicode string that describes the message.
Syntax
'Declaration <MessagingDescriptionAttribute("Specifies the label of the message.")> <DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)> <ReadOnlyAttribute(True)> Public Property Label As String
[MessagingDescription("Specifies the label of the message.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] public string Label {get; set;}
[MessagingDescription("Specifies the label of the message.")] [DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)] [ReadOnly(true)] public: property String^ Label { String^ get(); void set ( String^ value); }
Property Value
The label of the message. The default is an empty string ("").Exceptions
Exception | Description |
---|---|
System.InvalidOperationException | The message queue is filtered to ignore the Label 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