NetNamedPipeSecurity Class

 

Provides access to the security settings for endpoints configured with the named pipe binding.

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

System.Object
  System.ServiceModel.NetNamedPipeSecurity

[<Sealed>]
type NetNamedPipeSecurity = class end

NameDescription
System_CAPS_pubmethodNetNamedPipeSecurity()

Initializes a new instance of the NetNamedPipeSecurity class.

NameDescription
System_CAPS_pubpropertyMode

Gets or sets the security mode for the named pipe binding.

System_CAPS_pubpropertyTransport

Gets the transport security for the named pipe binding.

NameDescription
System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodShouldSerializeTransport()

Returns a a value that indicates whether the Transport property has changed from its default value and should be serialized. This is used by WCF for XAML integration.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

The following code shows how to add a NetNamedPipeSecurity object to a NetNamedPipeBinding instance.

NetNamedPipeBinding nnpb = new NetNamedPipeBinding();
NetNamedPipeSecurity nnpSecurity = nnpb.Security;
nnpSecurity.Mode = NetNamedPipeSecurityMode.Transport;
NamedPipeTransportSecurity npts = nnpSecurity.Transport;
serviceHost.AddServiceEndpoint(typeof(ICalculator), nnpb, "net.pipe://localhost/ServiceModelSamples/Service");

.NET Framework
Available since 3.0

Any public static ( Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show: