This documentation is archived and is not being maintained.

NamedPipeTransportBindingElement Class

Represents the binding element for the named pipe transport.

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

public class NamedPipeTransportBindingElement extends ConnectionOrientedTransportBindingElement

This transport uses URIs of the form "net.pipe://hostname/path". Other URI components are optional.

The NamedPipeTransportBindingElement class is the starting point for creating a custom binding that implements the named pipes transport protocol. This transport is used for on-machine Windows Communication Foundation (WCF)-to-WCF communication.

The WCF service model uses this class to create factory objects that implement the IChannelFactory and IChannelListener interfaces. These factory objects then create and accept the channels that transmit SOAP messages using the named pipes protocol.

You configure the factories that this class creates by setting its properties, such as: ConnectionPoolSettings.

You can also set properties on the base class, ConnectionOrientedTransportBindingElement, such as: MaxBufferSize, TransferMode, and ConnectionBufferSize. For a complete list of properties, see ConnectionOrientedTransportBindingElement.

Finally, you can set properties on the base class of ConnectionOrientedTransportBindingElement, which is TransportBindingElement, such as MaxBufferPoolSize. For a complete list of properties, see TransportBindingElement.

This example shows how to use this class:

NamedPipeTransportBindingElement bElement =
    new NamedPipeTransportBindingElement();

NamedPipeConnectionPoolSettings connectionPoolSettings =

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

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0