NetHttpsBinding Constructors

Definition

Initializes a new instance of the NetHttpsBinding class.

Overloads

NetHttpsBinding()

Initializes a new instance of the NetHttpsBinding class.

NetHttpsBinding(BasicHttpsSecurityMode)

Initializes a new instance of the NetHttpsBinding class with the type of security used.

NetHttpsBinding(String)

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

NetHttpsBinding(BasicHttpsSecurityMode, Boolean)

Initializes a new instance of the NetHttpsBinding class with the type of security used and with the value that indicates whether reliable sessions are explicitly enabled.

NetHttpsBinding()

Source:
NetHttpsBinding.cs
Source:
NetHttpsBinding.cs

Initializes a new instance of the NetHttpsBinding class.

C#
public NetHttpsBinding();

Applies to

.NET 10 (package-provided) 和其他版本
產品 版本
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 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
.NET Standard 2.0 (package-provided)

NetHttpsBinding(BasicHttpsSecurityMode)

Source:
NetHttpsBinding.cs
Source:
NetHttpsBinding.cs

Initializes a new instance of the NetHttpsBinding class with the type of security used.

C#
public NetHttpsBinding(System.ServiceModel.BasicHttpsSecurityMode securityMode);

Parameters

securityMode
BasicHttpsSecurityMode

The type of security used with the binding.

Applies to

.NET 10 (package-provided) 和其他版本
產品 版本
.NET Core 1.0, Core 1.1, 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 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
.NET Standard 2.0 (package-provided)

NetHttpsBinding(String)

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

C#
public NetHttpsBinding(string configurationName);

Parameters

configurationName
String

The binding configuration name.

Applies to

.NET Framework 4.8.1 和其他版本
產品 版本
.NET Framework 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

NetHttpsBinding(BasicHttpsSecurityMode, Boolean)

Source:
NetHttpsBinding.cs
Source:
NetHttpsBinding.cs

Initializes a new instance of the NetHttpsBinding class with the type of security used and with the value that indicates whether reliable sessions are explicitly enabled.

C#
public NetHttpsBinding(System.ServiceModel.BasicHttpsSecurityMode securityMode, bool reliableSessionEnabled);

Parameters

securityMode
BasicHttpsSecurityMode

The type of security used with the binding.

reliableSessionEnabled
Boolean

true if reliable sessions are enabled; otherwise, false.

Applies to

.NET 10 (package-provided) 和其他版本
產品 版本
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)
.NET Framework 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
.NET Standard 2.0 (package-provided)