NamedPipeTransportBindingElement Constructors

Definition

Initializes a new instance of the NamedPipeTransportBindingElement class.

Overloads

NamedPipeTransportBindingElement()

Source:
NamedPipeTransportBindingElement.cs
Source:
NamedPipeTransportBindingElement.cs

Initializes a new instance of the NamedPipeTransportBindingElement class.

C#
public NamedPipeTransportBindingElement();

Examples

This example shows how to use the parameterless constructor:

C#
NamedPipeTransportBindingElement bElement =
    new NamedPipeTransportBindingElement();

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

NamedPipeTransportBindingElement(NamedPipeTransportBindingElement)

Source:
NamedPipeTransportBindingElement.cs
Source:
NamedPipeTransportBindingElement.cs

Initializes a new instance of the NamedPipeTransportBindingElement class.

C#
protected NamedPipeTransportBindingElement(System.ServiceModel.Channels.NamedPipeTransportBindingElement elementToBeCloned);

Parameters

elementToBeCloned
NamedPipeTransportBindingElement

An instance of the NamedPipeTransportBindingElement class.

Examples

This example shows how to initialize a new instance of the class:

C#
NamedPipeTransportBindingElement bElement =
    new NamedPipeTransportBindingElement();

NamedPipeConnectionPoolSettings connectionPoolSettings =
    bElement.ConnectionPoolSettings;

Remarks

This method is a copy constructor used to clone the binding element, and is exposed so that derived classes can implement Clone.

Applies to

.NET 10 (package-provided) and other versions
Product Versions
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1