WindowsServiceCredential 類別

定義

提供屬性,這些屬性描述用於 Windows 驗證的服務認證。

public ref class WindowsServiceCredential sealed
public sealed class WindowsServiceCredential
type WindowsServiceCredential = class
Public NotInheritable Class WindowsServiceCredential
繼承
WindowsServiceCredential

備註

這個類別提供兩個設定。

您可以將 AllowAnonymousLogons 屬性設定為 true,以允許用戶端匿名登入。 然後,您可以將 AllowedImpersonationLevel 設定為 Anonymous,以避免將用戶端的身分識別洩漏給服務。

  • 如果將 IncludeWindowsGroups 屬性設定為 true (預設值),服務就可以判斷用戶端屬於哪個 Windows 群組。

屬性

AllowAnonymousLogons

取得或設定值,這個值表示是否允許匿名使用者存取 (僅適用於訊息層級安全性)。

IncludeWindowsGroups

取得或設定值,這個值表示用戶端所屬的 Windows 群組是否包含在安全性內容中。

方法

Equals(Object)

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。

(繼承來源 Object)
GetType()

取得目前執行個體的 Type

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複製。

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。

(繼承來源 Object)

適用於