Class HttpMethod
名称: Aspose.Html.Net 编辑: Aspose.HTML.dll (25.4.0)
代表获取和比较标准 HTTP 方法的实用类。
[ComVisible(true)]
public class HttpMethod : IEquatable<httpmethod>
Inheritance
Implements
继承人
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
HttpMethod(线条)
以特定 HTTP 方法启动 Aspose.Html.Net.HttpMethod 类的新例子。
public HttpMethod(string method)
Parameters
method
string
该方法。
Properties
Delete
使用 HTTP DELETE 协议方法
public static HttpMethod Delete { get; }
财产价值
Get
代表一个 HTTP GET 协议方法。
public static HttpMethod Get { get; }
财产价值
Post
代表一个 HTTP POST 协议方法。
public static HttpMethod Post { get; }
财产价值
Put
代表一个 HTTP PUT 协议方法。
public static HttpMethod Put { get; }
财产价值
Methods
Equals(HttpMethod)
指示当前对象是否与同类对象的其他对象相等。
public bool Equals(HttpMethod other)
Parameters
other
HttpMethod
一个对象与这个对象相比。
Returns
如果当前对象与 other’ 参数相同,则是真实的;否则是假的。
Equals(对象)
确定所指定的 System.Object 是否相当于此例。
public override bool Equals(object obj)
Parameters
obj
object
系统.对象与这个例子进行比较。
Returns
“真实”如果指定的 System.Object 等于此例;否则,“虚假”。
GetHashCode()
返回此例的Hash代码。
public override int GetHashCode()
Returns
此例的哈希代码,适合在哈希算法和数据结构中使用,如哈希表。
ToString()
返回一个 System.String 代表此例子。
public override string ToString()
Returns
一个系统.String 代表这个实例。
Operators
主持人 =(Http 方法, Http 方法)
实现平等运营商。
public static bool operator ==(HttpMethod left, HttpMethod right)
Parameters
left
HttpMethod
左手作家。
right
HttpMethod
左手作家。
Returns
行动的结果。
HttpMethod 操作员(线条)
从 System.String 转换为 Aspose.Html.Net.HttpMethod。
public static explicit operator HttpMethod(string name)
Parameters
name
string
HTTP方法名称。
Returns
转换的结果。
运营商 !=(Http 方法, Http 方法)
实现平等运营商。
public static bool operator !=(HttpMethod left, HttpMethod right)
Parameters
left
HttpMethod
左手作家。
right
HttpMethod
左手作家。
Returns
行动的结果。