NetNamedPipeSecurity Class
Provides access to the security settings for endpoints configured with the named pipe binding.
Assembly: System.ServiceModel (in System.ServiceModel.dll)
| Name | Description | |
|---|---|---|
![]() | NetNamedPipeSecurity() | Initializes a new instance of the NetNamedPipeSecurity class. |
| Name | Description | |
|---|---|---|
![]() | 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() | |
![]() | ShouldSerializeTransport() | 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. |
![]() | ToString() | 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");
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.

