EntityTagHeaderValue 构造函数

定义

初始化 EntityTagHeaderValue 类的新实例。Initializes a new instance of the EntityTagHeaderValue class.

重载

EntityTagHeaderValue(String)

初始化 EntityTagHeaderValue 类的新实例。Initializes a new instance of the EntityTagHeaderValue class.

EntityTagHeaderValue(String, Boolean)

初始化 EntityTagHeaderValue 类的新实例。Initializes a new instance of the EntityTagHeaderValue class.

EntityTagHeaderValue(String)

初始化 EntityTagHeaderValue 类的新实例。Initializes a new instance of the EntityTagHeaderValue class.

public:
 EntityTagHeaderValue(System::String ^ tag);
public EntityTagHeaderValue (string tag);
new System.Net.Http.Headers.EntityTagHeaderValue : string -> System.Net.Http.Headers.EntityTagHeaderValue
Public Sub New (tag As String)

参数

tag
String

包含 EntityTagHeaderValue 的字符串。A string that contains an EntityTagHeaderValue.

适用于

EntityTagHeaderValue(String, Boolean)

初始化 EntityTagHeaderValue 类的新实例。Initializes a new instance of the EntityTagHeaderValue class.

public:
 EntityTagHeaderValue(System::String ^ tag, bool isWeak);
public EntityTagHeaderValue (string tag, bool isWeak);
new System.Net.Http.Headers.EntityTagHeaderValue : string * bool -> System.Net.Http.Headers.EntityTagHeaderValue
Public Sub New (tag As String, isWeak As Boolean)

参数

tag
String

包含 EntityTagHeaderValue 的字符串。A string that contains an EntityTagHeaderValue.

isWeak
Boolean

一个指示此实体标记标头是否为弱验证程序的值。A value that indicates if this entity-tag header is a weak validator. 如果实体标记标头为弱验证程序,则应将 isWeak 设置为 trueIf the entity-tag header is weak validator, then isWeak should be set to true. 如果实体标记标头为强验证程序,则应将 isWeak 设置为 falseIf the entity-tag header is a strong validator, then isWeak should be set to false.

适用于