Прочетете на английски Редактиране

Споделяне чрез


Header Constructors

Definition

Initializes a new instance of the Header class.

Overloads

Header(String, Object)

Initializes a new instance of the Header class with the given name and value.

Header(String, Object, Boolean)

Initializes a new instance of the Header class with the given name, value, and additional configuration information.

Header(String, Object, Boolean, String)

Initializes a new instance of the Header class.

Header(String, Object)

Initializes a new instance of the Header class with the given name and value.

C#
public Header(string _Name, object _Value);

Parameters

_Name
String

The name of the Header.

_Value
Object

The object that contains the value for the Header.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 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

Header(String, Object, Boolean)

Initializes a new instance of the Header class with the given name, value, and additional configuration information.

C#
public Header(string _Name, object _Value, bool _MustUnderstand);

Parameters

_Name
String

The name of the Header.

_Value
Object

The object that contains the value for the Header.

_MustUnderstand
Boolean

Indicates whether the receiving end must understand the out-of-band data.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 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

Header(String, Object, Boolean, String)

Initializes a new instance of the Header class.

C#
public Header(string _Name, object _Value, bool _MustUnderstand, string _HeaderNamespace);

Parameters

_Name
String

The name of the Header.

_Value
Object

The object that contains the value of the Header.

_MustUnderstand
Boolean

Indicates whether the receiving end must understand out-of-band data.

_HeaderNamespace
String

The Header XML namespace.

Applies to

.NET Framework 4.8.1 и други версии
Продукт Версии
.NET Framework 1.1, 2.0, 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