Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

MsmqTransportBindingElement::UseActiveDirectory Property

 

Returns a Boolean value that indicates whether queue addresses should be converted using Active Directory.

Namespace:   System.ServiceModel.Channels
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public:
property bool UseActiveDirectory {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if queue addresses should be converted using Active Directory; otherwise, false.

Message Queuing (MSMQ) queue addresses can consist of path names or direct format names. With a direct format name, MSMQ resolves the queue name using DNS, NetBIOS, or IP. With a path name, MSMQ resolves the queue name using Active Directory.

By default, the Windows Communication Foundation (WCF) queued transport converts the URI of a message queue to a direct format name. By setting the UseActiveDirectory property to true, an application can specify that the queued transport should resolve the computer name using Active Directory rather than DNS, NetBIOS, or IP.

MsmqTransportBindingElement transportBindingElement = new MsmqTransportBindingElement();
transportBindingElement.UseActiveDirectory = true;

.NET Framework
Available since 3.0
Return to top
Show:
© 2017 Microsoft