Class HttpMethod

Class HttpMethod

Le nom : Aspose.Html.Net Assemblaggio: Aspose.HTML.dll (25.4.0)

Il représente la classe d’utilité pour recueillir et comparer les méthodes HTTP standard.

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

Inheritance

object HttpMethod

Implements

IEquatable

I membri ereditari

object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()

Constructors

HttpMethod(Le string)

Initialisez une nouvelle instance de la classe Aspose.Html.Net. HttpMethod avec une méthode HTTP spécifique.

public HttpMethod(string method)

Parameters

method string

La méthode .

Properties

Delete

Il s’agit d’un protocole HTTP DELETE.

public static HttpMethod Delete { get; }

Valore di proprietà

HttpMethod

Get

Il s’agit d’un protocole HTTP GET.

public static HttpMethod Get { get; }

Valore di proprietà

HttpMethod

Post

Il s’agit d’un protocole HTTP POST.

public static HttpMethod Post { get; }

Valore di proprietà

HttpMethod

Put

Il s’agit d’un protocole HTTP PUT.

public static HttpMethod Put { get; }

Valore di proprietà

HttpMethod

Methods

Equals(HttpMethod)

Indica se l’oggetto corrente è uguale ad un altro oggetto dello stesso tipo.

public bool Equals(HttpMethod other)

Parameters

other HttpMethod

Un oggetto da confrontare con questo oggetto.

Returns

bool

vero se l’oggetto corrente è uguale al parametro altro; altrimenti, falso.

Equals(Objets)

Determinerà se il System.Object specificato è uguale a questa instanza.

public override bool Equals(object obj)

Parameters

obj object

Il sistema.oggetto per paragonare con questa instanza.

Returns

bool

’true’ se il specifico System.Object è uguale a questa instanza; altrimenti, ‘falso’.

GetHashCode()

Ritorna un codice hash per questo caso.

public override int GetHashCode()

Returns

int

Un codice hash per questo esempio, adatto per l’uso in algoritmi di hashing e strutture di dati come una tabella hash.

ToString()

Ritorna un System.String che rappresenta questa instanza.

public override string ToString()

Returns

string

Un sistema.String che rappresenta questa instanza.

Operators

L’opérateur =(HTTPMétode, HttpMethode)

La mise en œuvre de l’opérateur d’égalité.

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

Parameters

left HttpMethod

La gauche opératrice.

right HttpMethod

La gauche opératrice.

Returns

bool

Le résultat de l’opération.

Opérateur explicite HttpMethod(Le string)

Il effectue une conversion explicite de System.String à Aspose.Html.Net.HTTPMethod.

public static explicit operator HttpMethod(string name)

Parameters

name string

Le nom de la méthode HTTP.

Returns

HttpMethod

Il risultato della conversione.

opérateur !=(HTTPMétode, HttpMethode)

La mise en œuvre de l’opérateur d’égalité.

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

Parameters

left HttpMethod

La gauche opératrice.

right HttpMethod

La gauche opératrice.

Returns

bool

Le résultat de l’opération.

 Français