NetNamedPipeSecurity NetNamedPipeSecurity NetNamedPipeSecurity NetNamedPipeSecurity Class


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

public ref class NetNamedPipeSecurity sealed
public sealed class NetNamedPipeSecurity
type NetNamedPipeSecurity = class
Public NotInheritable Class NetNamedPipeSecurity


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");


NetNamedPipeSecurity() NetNamedPipeSecurity() NetNamedPipeSecurity() NetNamedPipeSecurity()

Initializes a new instance of the NetNamedPipeSecurity class.


Mode Mode Mode Mode

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

Transport Transport Transport Transport

Gets the transport security for the named pipe binding.


Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ShouldSerializeTransport() ShouldSerializeTransport() ShouldSerializeTransport() ShouldSerializeTransport()

Returns 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.

ToString() ToString() ToString() ToString()

Returns a string that represents the current object.

(Inherited from Object)

Applies to