Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MessageQueueInstaller.Path Property

Gets or sets the location of the queue that is referenced by this object.

Namespace: System.Messaging
Assembly: System.Messaging (in system.messaging.dll)

public string Path { get; set; }
/** @property */
public String get_Path ()

/** @property */
public void set_Path (String value)

public function get Path () : String

public function set Path (value : String)

Property Value

The path that represents the location of the queue in the network.

Exception typeCondition

ArgumentException

The Path was set to an invalid value, possibly because the syntax is not valid.

-or-

The Path is a null reference (Nothing in Visual Basic).

The syntax for the Path property depends on the type of queue it references. The following table shows the syntax you should use for queues of various types.

Queue type

Syntax

Public queue

machineName\queueName

Private queue

machineName\Private$\queueName

Journal queue

machineName\queueName\Journal$

Machine journal queue

machineName\Journal$

Machine dead-letter queue

machineName\Deadletter$

Machine transactional dead-letter queue

machineName\XactDeadletter$

Use "." for the local computer.

You can also use the FormatName or Label of a Message Queuing application object to describe the queue path. The following table shows the proper syntax for each type of reference.

Reference

Syntax

Format name

FormatName:[ format name ]

Label

Label:[ label ]

If you are working offline, you must use the format name to define the queue Path. If you do not, the application will throw an exception, because the primary domain controller is unavailable to resolve the Path into the FormatName.

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2015 Microsoft