NetHttpBinding Constructors

Definition

Initializes a new instance of the NetHttpBinding class.

Overloads

NetHttpBinding()

Initializes a new instance of the NetHttpBinding class.

NetHttpBinding(BasicHttpSecurityMode)

Initializes a new instance of the NetHttpBinding class with the specified security mode.

NetHttpBinding(String)

Initializes a new instance of the NetHttpBinding class with the specified configuration name.

NetHttpBinding(BasicHttpSecurityMode, Boolean)

Initializes a new instance of the NetHttpBinding class with the specified security mode.

NetHttpBinding()

Source:
NetHttpBinding.cs
Source:
NetHttpBinding.cs

Initializes a new instance of the NetHttpBinding class.

C#
public NetHttpBinding ();

Applies to

.NET 8 (package-provided) 및 기타 버전
제품 버전
.NET Core 1.0, Core 1.1, 8 (package-provided)
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0

NetHttpBinding(BasicHttpSecurityMode)

Source:
NetHttpBinding.cs
Source:
NetHttpBinding.cs

Initializes a new instance of the NetHttpBinding class with the specified security mode.

C#
public NetHttpBinding (System.ServiceModel.BasicHttpSecurityMode securityMode);

Parameters

securityMode
BasicHttpSecurityMode

The mode of the security.

Applies to

.NET 8 (package-provided) 및 기타 버전
제품 버전
.NET Core 1.0, Core 1.1, 8 (package-provided)
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0

NetHttpBinding(String)

Initializes a new instance of the NetHttpBinding class with the specified configuration name.

C#
public NetHttpBinding (string configurationName);

Parameters

configurationName
String

The name of the configuration.

Applies to

.NET Core 1.1 및 기타 버전
제품 버전
.NET Core 1.0, Core 1.1
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)
UWP 10.0

NetHttpBinding(BasicHttpSecurityMode, Boolean)

Source:
NetHttpBinding.cs
Source:
NetHttpBinding.cs

Initializes a new instance of the NetHttpBinding class with the specified security mode.

C#
public NetHttpBinding (System.ServiceModel.BasicHttpSecurityMode securityMode, bool reliableSessionEnabled);

Parameters

securityMode
BasicHttpSecurityMode

The mode of the security.

reliableSessionEnabled
Boolean

true to indicate that the reliable session was enabled; otherwise, false.

Applies to

.NET 8 (package-provided) 및 기타 버전
제품 버전
.NET 8 (package-provided)
.NET Framework 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7 (package-provided), 4.7, 4.7.1 (package-provided), 4.7.1, 4.7.2 (package-provided), 4.7.2, 4.8 (package-provided), 4.8, 4.8.1
.NET Standard 2.0 (package-provided)