Class HttpMethod

Class HttpMethod

ชื่อพื้นที่: Aspose.Html.Net การประกอบ: Aspose.HTML.dll (25.4.0)

แสดงคลาสประโยชน์สําหรับการรับและเปรียบเทียบวิธีการ HTTP มาตรฐาน

[ComVisible(true)]
public class HttpMethod : IEquatable<httpmethod>

Inheritance

object HttpMethod

Implements

IEquatable

อนุญาโตตุลาการ

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; }

คุณสมบัติมูลค่า

HttpMethod

Get

แสดงวิธีการโปรโตคอล HTTP GET

public static HttpMethod Get { get; }

คุณสมบัติมูลค่า

HttpMethod

Post

แสดงวิธีการโปรโตคอล HTTP POST

public static HttpMethod Post { get; }

คุณสมบัติมูลค่า

HttpMethod

Put

แสดงวิธีการโปรโตคอล HTTP PUT

public static HttpMethod Put { get; }

คุณสมบัติมูลค่า

HttpMethod

Methods

Equals(HttpMethod)

แสดงให้เห็นว่าวัตถุปัจจุบันเท่ากับวัตถุอื่น ๆ ของประเภทเดียวกันหรือไม่

public bool Equals(HttpMethod other)

Parameters

other HttpMethod

เป็นวัตถุที่เปรียบเทียบกับวัตถุนี้

Returns

bool

จริงถ้าวัตถุปัจจุบันเท่ากับพารามิเตอร์ อื่น ๆ; ในทางอื่น ๆ, จริง.

Equals(วัตถุ)

กําหนดว่า System.Object ที่ระบุเท่ากับตัวอย่างนี้หรือไม่

public override bool Equals(object obj)

Parameters

obj object

ระบบ.วัตถุในการเปรียบเทียบกับตัวอย่างนี้

Returns

bool

‘จริง’ ถ้า System.Object ที่ระบุเท่ากับตัวอย่างนี้; ในทางอื่น ๆ, ‘ผิดพลาด’.

GetHashCode()

กลับรหัส hash สําหรับตัวอย่างนี้

public override int GetHashCode()

Returns

int

รหัส hash สําหรับตัวอย่างนี้เหมาะสําหรับการใช้งานในอัลกอริทึม hashing และโครงสร้างข้อมูลเช่นตาราง hash

ToString()

กลับ System.String ที่แสดงตัวอย่างนี้

public override string ToString()

Returns

string

ระบบ String ซึ่งเป็นตัวแทนของ instance นี้

Operators

ผู้ประกอบการ =(HttpMethod และ HttpMethod)

นําไปใช้กับผู้ประกอบการความเท่าเทียม

public static bool operator ==(HttpMethod left, HttpMethod right)

Parameters

left HttpMethod

แอปเปิ้ลซ้าย

right HttpMethod

แอปเปิ้ลซ้าย

Returns

bool

ผลของการดําเนินงาน

ผู้ประกอบการอธิบาย HttpMethod(รั้ว)

ทําการแปลงอย่างชัดเจนจาก System.String ไปยัง Aspose.Html.Net.HttpMethod

public static explicit operator HttpMethod(string name)

Parameters

name string

ชื่อวิธีการ HTTP

Returns

HttpMethod

ผลของการแปลง

ผู้ประกอบการ !=(HttpMethod และ HttpMethod)

นําไปใช้กับผู้ประกอบการความเท่าเทียม

public static bool operator !=(HttpMethod left, HttpMethod right)

Parameters

left HttpMethod

แอปเปิ้ลซ้าย

right HttpMethod

แอปเปิ้ลซ้าย

Returns

bool

ผลของการดําเนินงาน

 แบบไทย