RetryConditionHeaderValue 类
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
表示一个 Retry-After 标头值,该值可以是日期/时间或时间跨度值。
public ref class RetryConditionHeaderValue
public ref class RetryConditionHeaderValue : ICloneable
public class RetryConditionHeaderValue
public class RetryConditionHeaderValue : ICloneable
type RetryConditionHeaderValue = class
type RetryConditionHeaderValue = class
interface ICloneable
Public Class RetryConditionHeaderValue
Public Class RetryConditionHeaderValue
Implements ICloneable
- 继承
-
RetryConditionHeaderValue
- 实现
注解
该 RetryConditionHeaderValue 类支持 IETF 在 RFC 2616 中定义的 Retry-After 标头。
构造函数
| 名称 | 说明 |
|---|---|
| RetryConditionHeaderValue(DateTimeOffset) |
初始化 RetryConditionHeaderValue 类的新实例。 |
| RetryConditionHeaderValue(TimeSpan) |
初始化 RetryConditionHeaderValue 类的新实例。 |
属性
| 名称 | 说明 |
|---|---|
| Date |
获取对象的 RetryConditionHeaderValue 日期和时间偏移量。 |
| Delta |
获取对象中的 RetryConditionHeaderValue 增量(以秒为单位)。 |
方法
| 名称 | 说明 |
|---|---|
| Equals(Object) |
确定指定的 Object 对象是否等于当前 RetryConditionHeaderValue 对象。 |
| GetHashCode() |
用作对象的 RetryConditionHeaderValue 哈希函数。 |
| GetType() |
获取当前实例的 Type。 (继承自 Object) |
| MemberwiseClone() |
创建当前 Object的浅表副本。 (继承自 Object) |
| Parse(String) |
将字符串转换为 RetryConditionHeaderValue 实例。 |
| ToString() |
返回一个表示当前 RetryConditionHeaderValue 对象的字符串。 |
| TryParse(String, RetryConditionHeaderValue) |
确定字符串是否为有效 RetryConditionHeaderValue 信息。 |
显式接口实现
| 名称 | 说明 |
|---|---|
| ICloneable.Clone() |
创建一个新对象,该对象是当前 RetryConditionHeaderValue 实例的副本。 |