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(รั้ว)
เริ่มต้นตัวอย่างใหม่ของคลาส Aspose.Html.Net.HttpMethod ด้วยวิธีการ HTTP ที่กําหนด
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
จริงถ้าวัตถุปัจจุบันเท่ากับพารามิเตอร์ อื่น ๆ; ในทางอื่น ๆ, จริง.
Equals(วัตถุ)
กําหนดว่า System.Object ที่ระบุเท่ากับตัวอย่างนี้หรือไม่
public override bool Equals(object obj)
Parameters
obj
object
ระบบ.วัตถุในการเปรียบเทียบกับตัวอย่างนี้
Returns
‘จริง’ ถ้า System.Object ที่ระบุเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.
GetHashCode()
กลับรหัส hash สําหรับตัวอย่างนี้
public override int GetHashCode()
Returns
รหัส hash สําหรับตัวอย่างนี้เหมาะสําหรับการใช้งานในอัลกอริทึม hashing และโครงสร้างข้อมูลเช่นตาราง hash
ToString()
กลับ System.String ที่แสดงตัวอย่างนี้
public override string ToString()
Returns
ระบบ String ซึ่งเป็นตัวแทนของ instance นี้
Operators
ผู้ประกอบการ =(HttpMethod และ HttpMethod)
นําไปใช้กับผู้ประกอบการความเท่าเทียม
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
ผลของการแปลง
ผู้ประกอบการ !=(HttpMethod และ HttpMethod)
นําไปใช้กับผู้ประกอบการความเท่าเทียม
public static bool operator !=(HttpMethod left, HttpMethod right)
Parameters
left
HttpMethod
แอปเปิ้ลซ้าย
right
HttpMethod
แอปเปิ้ลซ้าย
Returns
ผลของการดําเนินงาน