Editar

Compartir a través de


NetNamedPipeSecurity Class

Definition

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

public ref class NetNamedPipeSecurity sealed
[System.Runtime.Versioning.SupportedOSPlatform("windows")]
public sealed class NetNamedPipeSecurity
public sealed class NetNamedPipeSecurity
[<System.Runtime.Versioning.SupportedOSPlatform("windows")>]
type NetNamedPipeSecurity = class
type NetNamedPipeSecurity = class
Public NotInheritable Class NetNamedPipeSecurity
Inheritance
NetNamedPipeSecurity
Attributes

Examples

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

Constructors

NetNamedPipeSecurity()

Initializes a new instance of the NetNamedPipeSecurity class.

Properties

Mode

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

Transport

Gets the transport security for the named pipe binding.

Methods

Equals(Object)

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

(Inherited from Object)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
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()

Returns a string that represents the current object.

(Inherited from Object)

Applies to