RangeConditionHeaderValue 类

定义

表示可以是日期/时间或实体标记值 If-Range 标题值。Represents an If-Range header value which can either be a date/time or an entity-tag value.

public ref class RangeConditionHeaderValue : ICloneable
public class RangeConditionHeaderValue : ICloneable
type RangeConditionHeaderValue = class
    interface ICloneable
Public Class RangeConditionHeaderValue
Implements ICloneable
继承
RangeConditionHeaderValue
实现

注解

RangeConditionHeaderValue 类支持由 IETF 在RFC 2616中定义的 If 范围标头。The RangeConditionHeaderValue class provides support for the If-Range header as defined in RFC 2616 by the IETF.

构造函数

RangeConditionHeaderValue(DateTimeOffset)

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

RangeConditionHeaderValue(EntityTagHeaderValue)

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

RangeConditionHeaderValue(String)

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

属性

Date

获取日期 RangeConditionHeaderValue 对象中的日期。Gets the date from the RangeConditionHeaderValue object.

EntityTag

RangeConditionHeaderValue 对象获取实体标记。Gets the entity tag from the RangeConditionHeaderValue object.

方法

Equals(Object)

确定指定的 Object 是否等于当前的 RangeConditionHeaderValue 对象。Determines whether the specified Object is equal to the current RangeConditionHeaderValue object.

GetHashCode()

充当 RangeConditionHeaderValue 对象的哈希函数。Serves as a hash function for an RangeConditionHeaderValue object.

GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Parse(String)

将字符串转换为 RangeConditionHeaderValue 实例。Converts a string to an RangeConditionHeaderValue instance.

ToString()

返回表示当前 RangeConditionHeaderValue 对象的字符串。Returns a string that represents the current RangeConditionHeaderValue object.

TryParse(String, RangeConditionHeaderValue)

确定一个字符串是否为有效的 RangeConditionHeaderValue 信息。Determines whether a string is valid RangeConditionHeaderValue information.

显式接口实现

ICloneable.Clone()

创建作为当前 RangeConditionHeaderValue 实例副本的新对象。Creates a new object that is a copy of the current RangeConditionHeaderValue instance.

适用于