System.Messaging Reference (Document! X Sample)



CanRead Property
Gets a value that indicates whether the MessageQueue can be read.
Syntax
'Declaration
 
<MessagingDescriptionAttribute("Indicates if the queue has read permission.")>
<DesignerSerializationVisibilityAttribute(DesignerSerializationVisibility.Hidden)>
<BrowsableAttribute(False)>
Public ReadOnly Property CanRead As Boolean
'Usage
 
Dim instance As MessageQueue
Dim value As Boolean
 
value = instance.CanRead
[MessagingDescription("Indicates if the queue has read permission.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Browsable(false)]
public bool CanRead {get;}
[MessagingDescription("Indicates if the queue has read permission.")]
[DesignerSerializationVisibility(DesignerSerializationVisibility.Hidden)]
[Browsable(false)]
public:
property bool CanRead {
   bool get();
}

Property Value

true if the MessageQueue exists and the application can read from it; otherwise, false.
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