共用方式為


EndpointAddress.GetHashCode 方法

定義

提供目前端點位址的唯一雜湊程式碼。

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

傳回

目前端點位址的唯一雜湊程式碼。

範例

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();

備註

GetHashCode 適用于雜湊演算法和雜湊表等資料結構。

適用於