WarningHeaderValue 类

定义

表示 Warning 标头使用的警告值。Represents a warning value used by the Warning header.

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

构造函数

WarningHeaderValue(Int32, String, String)

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

WarningHeaderValue(Int32, String, String, DateTimeOffset)

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

属性

Agent

获取附加警告的主机。Gets the host that attached the warning.

Code

获取特定的警告代码。Gets the specific warning code.

Date

获取警告的日期/时间戳。Gets the date/time stamp of the warning.

Text

获取包含警告文本的引用字符串。Gets a quoted-string containing the warning text.

方法

Equals(Object)

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

GetHashCode()

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

GetType()

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

(继承自 Object)
MemberwiseClone()

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

(继承自 Object)
Parse(String)

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

ToString()

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

TryParse(String, WarningHeaderValue)

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

显式接口实现

ICloneable.Clone()

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

适用于