TcpClientCredentialType 列舉

定義

列舉 TCP 用戶端的有效認證型別。

C#
public enum TcpClientCredentialType
繼承
TcpClientCredentialType

欄位

名稱 Description
Certificate 2

使用憑證指定用戶端驗證。

None 0

指定匿名驗證。

Windows 1

使用 Windows 指定用戶端驗證。

備註

ClientCredentialType 會使用這個列舉,來指定驗證所要使用的用戶端認證型別。

請注意,如果 SecurityMode 設為 TransportWithMessageCredential,則會忽略 TcpClientCredentialType 的值。

適用於

產品 版本
.NET Core 1.0, Core 1.1, 8
.NET Framework 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
UWP 10.0