Class HttpMethod
İsim alanı : Aspose.Html.Net Görüntüleme: Aspose.HTML.dll (25.4.0)
Standart HTTP yöntemlerini almak ve karşılaştırmak için yararlılık sınıfını temsil eder.
[ComVisible(true)]
public class HttpMethod : IEquatable<httpmethod>
Inheritance
Implements
mirasçı üyeleri
object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
HttpMethod(Sırt)
Aspose.Html.Net.HttpMethod sınıfının yeni bir örneği belirli bir HTTP yöntemi ile başlatılır.
public HttpMethod(string method)
Parameters
method
string
Bu yöntem.
Properties
Delete
HTTP Delete protokol yöntemini kullanır.
public static HttpMethod Delete { get; }
Mülkiyet Değer
Get
Bir HTTP GET protokolü yöntemi oluşturur.
public static HttpMethod Get { get; }
Mülkiyet Değer
Post
HTTP POST protokol yöntemini kullanır.
public static HttpMethod Post { get; }
Mülkiyet Değer
Put
Bir HTTP PUT protokolü yöntemi oluşturur.
public static HttpMethod Put { get; }
Mülkiyet Değer
Methods
Equals(HttpMethod)
Mevcut nesnenin aynı türde başka bir nesneye eşit olup olmadığını gösterir.
public bool Equals(HttpMethod other)
Parameters
other
HttpMethod
Bu nesne ile karşılaştırılabilir bir nesne.
Returns
mevcut nesne other’ parametres ile eşit ise doğru; aksi takdirde, sahte.
Equals(nesne)
Bu örnekte belirtilen System.Object’in eşit olup olmadığını belirler.
public override bool Equals(object obj)
Parameters
obj
object
Sistem.Object bu durumla karşılaştırmak için.
Returns
‘gerçek’ eğer belirtilen System.Object bu örneğe eşittir; aksi takdirde, ‘yanlış’.
GetHashCode()
Bu örnek için bir hash kodu iade eder.
public override int GetHashCode()
Returns
Bu örnek için bir hash kodu, hash algoritmalarında ve bir hash tablosu gibi veri yapılarında kullanıma uygundur.
ToString()
Bu istasyonu temsil eden bir System.String’i geri getirir.
public override string ToString()
Returns
Bu istasyonu temsil eden bir sistem.String.
Operators
Operatör =(HttpMethod ve HttpMethod)
Eşitlik operatörünü uygulayın.
public static bool operator ==(HttpMethod left, HttpMethod right)
Parameters
left
HttpMethod
Sağ operatör.
right
HttpMethod
Sağ operatör.
Returns
Operasyonun Sonuçları
Operatör HttpMethod(Sırt)
Sistem.String’den Aspose.Html.Net.HttpMethod’a açık bir dönüşüm yapar.
public static explicit operator HttpMethod(string name)
Parameters
name
string
HTTP Metodu Adı
Returns
Bu dönüşümün sonucu.
Operatör !=(HttpMethod ve HttpMethod)
Eşitlik operatörünü uygulayın.
public static bool operator !=(HttpMethod left, HttpMethod right)
Parameters
left
HttpMethod
Sağ operatör.
right
HttpMethod
Sağ operatör.
Returns
Operasyonun Sonuçları