MsmqTransportBindingElement::UseActiveDirectory Property
Returns a Boolean value that indicates whether queue addresses should be converted using Active Directory.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
Property Value
Type: System::Booleantrue 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;
Available since 3.0