Path Property (MessageQueue)
Gets or sets the queue's path. Setting the Path causes the MessageQueue to point to a new queue.
Syntax
'Declaration <RefreshPropertiesAttribute(RefreshProperties.All)> <SettingsBindableAttribute(True)> <EditorAttribute(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Messaging.Design.QueuePathEditor")> <BrowsableAttribute(False)> <DefaultValueAttribute()> <TypeConverterAttribute("System.Diagnostics.Design.StringValueConverter, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")> <MessagingDescriptionAttribute("Specifies the location of the queue that will be referenced by this object.")> Public Property Path As String
'Usage Dim instance As MessageQueue Dim value As String instance.Path = value value = instance.Path
[RefreshProperties(RefreshProperties.All)] [SettingsBindable(true)] [Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Messaging.Design.QueuePathEditor")] [Browsable(false)] [DefaultValue()] [TypeConverter("System.Diagnostics.Design.StringValueConverter, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [MessagingDescription("Specifies the location of the queue that will be referenced by this object.")] public string Path {get; set;}
[RefreshProperties(RefreshProperties.All)] [SettingsBindable(true)] [Editor(EditorBaseTypeName="System.Drawing.Design.UITypeEditor, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a", EditorTypeName="System.Messaging.Design.QueuePathEditor")] [Browsable(false)] [DefaultValue()] [TypeConverter("System.Diagnostics.Design.StringValueConverter, System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a")] [MessagingDescription("Specifies the location of the queue that will be referenced by this object.")] public: property String^ Path { String^ get(); void set ( String^ value); }
Property Value
The queue that is referenced by the MessageQueue. The default depends on which MessageQueue Constructor constructor you use; it is either null or is specified by the constructor's path parameter.Exceptions
Exception | Description |
---|---|
System.ArgumentException | The path is not valid, possibly because the syntax is not valid. |
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