EntityTagHeaderValue 类
定义
表示实体标记标头值。Represents an entity-tag header value.
public ref class EntityTagHeaderValue
public ref class EntityTagHeaderValue : ICloneable
public class EntityTagHeaderValue
public class EntityTagHeaderValue : ICloneable
type EntityTagHeaderValue = class
type EntityTagHeaderValue = class
interface ICloneable
Public Class EntityTagHeaderValue
Public Class EntityTagHeaderValue
Implements ICloneable
- 继承
-
EntityTagHeaderValue
- 实现
注解
实体标记用于比较相同请求资源中的两个或多个实体。Entity tags are used for comparing two or more entities from the same requested resource.
构造函数
| EntityTagHeaderValue(String) |
初始化 EntityTagHeaderValue 类的新实例。Initializes a new instance of the EntityTagHeaderValue class. |
| EntityTagHeaderValue(String, Boolean) |
初始化 EntityTagHeaderValue 类的新实例。Initializes a new instance of the EntityTagHeaderValue class. |
属性
| Any |
获取实体标记标头值。Gets the entity-tag header value. |
| IsWeak |
获取判断结果,即该实体标记是否以漏洞指示器开头。Gets whether the entity-tag is prefaced by a weakness indicator. |
| Tag |
获取不透明的带引号的字符串。Gets the opaque quoted string. |
方法
| Equals(Object) |
确定指定的 Object 是否等于当前的 EntityTagHeaderValue 对象。Determines whether the specified Object is equal to the current EntityTagHeaderValue object. |
| GetHashCode() |
充当 EntityTagHeaderValue 对象的哈希函数。Serves as a hash function for an EntityTagHeaderValue object. |
| GetType() |
获取当前实例的 Type。Gets the Type of the current instance. (继承自 Object) |
| MemberwiseClone() |
创建当前 Object 的浅表副本。Creates a shallow copy of the current Object. (继承自 Object) |
| Parse(String) |
将字符串转换为 EntityTagHeaderValue 实例。Converts a string to an EntityTagHeaderValue instance. |
| ToString() |
返回表示当前 EntityTagHeaderValue 对象的字符串。Returns a string that represents the current EntityTagHeaderValue object. |
| TryParse(String, EntityTagHeaderValue) |
确定一个字符串是否为有效的 EntityTagHeaderValue 信息。Determines whether a string is valid EntityTagHeaderValue information. |
显式接口实现
| ICloneable.Clone() |
创建作为当前 EntityTagHeaderValue 实例副本的新对象。Creates a new object that is a copy of the current EntityTagHeaderValue instance. |