ContentRangeHeaderValue 类

定义

表示 Content-Range 标头的值。Represents the value of the Content-Range header.

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

构造函数

ContentRangeHeaderValue(Int64)

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

ContentRangeHeaderValue(Int64, Int64)

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

ContentRangeHeaderValue(Int64, Int64, Int64)

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

属性

From

获取开始发送数据的位置。Gets the position at which to start sending data.

HasLength

获取 Content-Range 标头是否具有指定的长度。Gets whether the Content-Range header has a length specified.

HasRange

获取判断结果,即 Content-Range 是否指定了范围。Gets whether the Content-Range has a range specified.

Length

获取完整实体主体的长度。Gets the length of the full entity-body.

To

获取停止发送数据的位置。Gets the position at which to stop sending data.

Unit

使用的范围单位。The range units used.

方法

Equals(Object)

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

GetHashCode()

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

GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
Parse(String)

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

ToString()

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

TryParse(String, ContentRangeHeaderValue)

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

显式接口实现

ICloneable.Clone()

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

适用于