Share via


WindowsCredential 類別

使用 Windows 驗證 (Authentication) 提供使用之物件 Team Foundation Server。

繼承階層架構

System.Object
  Microsoft.TeamFoundation.Client.IssuedTokenCredential
    Microsoft.TeamFoundation.Client.WindowsCredential

命名空間:  Microsoft.TeamFoundation.Client
組件:  Microsoft.TeamFoundation.Client (在 Microsoft.TeamFoundation.Client.dll 中)

語法

'宣告
Public NotInheritable Class WindowsCredential _
    Inherits IssuedTokenCredential
public sealed class WindowsCredential : IssuedTokenCredential

WindowsCredential 型別會公開下列成員。

建構函式

  名稱 說明
公用方法 WindowsCredential() 使用預設使用者介面提供者實作和預設網路認證,初始化的新執行個體。 WindowsCredential
公用方法 WindowsCredential(Boolean) 如果將它們指派,使用預設使用者介面提供者實作和預設網路認證,初始化的新執行個體。 WindowsCredential
公用方法 WindowsCredential(ICredentials) 使用預設使用者介面提供者實作和指定的網路認證,初始化的新執行個體。 WindowsCredential
公用方法 WindowsCredential(ICredentials, ICredentialsProvider) 使用指定的網路認證和後援認證提供者,初始化類別的新執行個體。 WindowsCredential

回頁首

屬性

  名稱 說明
公用屬性 Credentials

回頁首

方法

  名稱 說明
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。

回頁首

執行緒安全

這個型別的任何 Public static (在 Visual Basic 中為 Shared) 成員都具備執行緒安全。不保證任何執行個體成員是安全執行緒。

請參閱

參考

Microsoft.TeamFoundation.Client 命名空間