DnsEndpointIdentity 類別

定義

指定伺服器的 DNS 身分識別。

public ref class DnsEndpointIdentity : System::ServiceModel::EndpointIdentity
public class DnsEndpointIdentity : System.ServiceModel.EndpointIdentity
type DnsEndpointIdentity = class
    inherit EndpointIdentity
Public Class DnsEndpointIdentity
Inherits EndpointIdentity
繼承
DnsEndpointIdentity

備註

這個類別會指定伺服器的預期身分識別。 如果伺服器的憑證包含具有相同值的 DNS,則此身分識別適用于 X509 憑證驗證模式。 如果 SPN 具有相同的值,則對於 Windows 驗證模式也是有效的。 在此情況下,針對Windows 驗證模式指定 DnsEndpointIdentity 「server1.microsoft.com」 的用戶端相當於指定 SpnEndpointIdentity 「host/server1.microsoft.com」。

建構函式

DnsEndpointIdentity(Claim)

從宣告初始化 DnsEndpointIdentity 類別的新執行個體。

DnsEndpointIdentity(String)

從 DNS 名稱初始化這個類別的新執行個體。

屬性

IdentityClaim

取得對應到身分識別的身分識別宣告。

(繼承來源 EndpointIdentity)

方法

Equals(Object)

傳回值,這個值會判斷指定的物件是否與目前的身分識別物件相等,或是否擁有相同的安全性屬性。

(繼承來源 EndpointIdentity)
GetHashCode()

針對身分識別目前的執行個體提供雜湊程式碼。

(繼承來源 EndpointIdentity)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
Initialize(Claim)

使用指定的宣告初始化 EndpointIdentity

(繼承來源 EndpointIdentity)
Initialize(Claim, IEqualityComparer<Claim>)

使用指定的宣告及介面來初始化 EndpointIdentity 並比較是否相等。

(繼承來源 EndpointIdentity)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回身分識別。

(繼承來源 EndpointIdentity)

適用於