Share via


EndpointAddress.GetHashCode Metodo

Definizione

Fornisce un codice hash univoco per l'indirizzo endpoint corrente.

public:
 override int GetHashCode();
public override int GetHashCode ();
override this.GetHashCode : unit -> int
Public Overrides Function GetHashCode () As Integer

Restituisce

Codice hash univoco per l'indirizzo endpoint corrente.

Esempio

EndpointIdentity endpointIdentity =
    EndpointIdentity.CreateUpnIdentity(WindowsIdentity.GetCurrent().Name);
EndpointAddress endpointAddress = new EndpointAddress(
    new Uri
    ("http://localhost:8003/servicemodelsamples/service/incode/identity"),
    endpointIdentity, addressHeaders);

int hashCode = endpointAddress.GetHashCode();

Commenti

GetHashCode è adatto per l'uso in algoritmi di hashing e con strutture di dati come una tabella hash.

Si applica a