MessageQueueCriteria.MachineName Property

Definition

Gets or sets the computer name by which to filter queues in the network.

public string MachineName { get; set; }

Property Value

The server name of the computer on which the queues reside.

Exceptions

The application did not set the MachineName property before reading it.

-or-

The computer name syntax is invalid.

Remarks

A message queue's MachineName reflects the name of the server on which the queue resides, without preceding backslashes (\).

If you are filtering only by computer name when searching the queues on the network, you can use the method GetPublicQueuesByMachine, which is specifically designed for this purpose. If you are searching by multiple criteria that include the computer name, set this MachineName property and pass the parameter into GetPublicQueues.

You can also search for private queues on the network by specifying a computer name in the GetPrivateQueuesByMachine method.

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also