NetMsmqBinding Constructor (NetMsmqSecurityMode)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Initializes a new instance of the NetMsmqBinding class using the specified security mode.

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

public NetMsmqBinding(
	NetMsmqSecurityMode securityMode
)

Parameters

securityMode
Type: System.ServiceModel.NetMsmqSecurityMode

The security mode with which to initialize the new instance.

Exception Condition
InvalidEnumArgumentException

The value is not one of the NetMsmqSecurityMode values.

The following code shows how to construct the NetMsmqBinding with a security mode.

NetMsmqBinding binding = new NetMsmqBinding(NetMsmqSecurityMode.Message);

.NET Framework
Available since 3.0
Return to top
Show: