共用方式為


TeamFoundationIdentityService 類別

繼承階層架構

System.Object
  Microsoft.TeamFoundation.Framework.Server.TeamFoundationIdentityService

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

語法

'宣告
<TeamFoundationServiceDependency(GetType(TeamFoundationSecurityService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationRegistryService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationTaskService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationSqlNotificationService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationFeatureAvailabilityService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationHostManagementService))> _
<TeamFoundationServiceDependency(GetType(TeamFoundationEventService))> _
Public Class TeamFoundationIdentityService _
    Implements ITeamFoundationService, IDisposable, ITeamFoundationIdentityService
[TeamFoundationServiceDependency(typeof(TeamFoundationSecurityService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationRegistryService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationTaskService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationSqlNotificationService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationFeatureAvailabilityService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationHostManagementService))]
[TeamFoundationServiceDependency(typeof(TeamFoundationEventService))]
public class TeamFoundationIdentityService : ITeamFoundationService, 
    IDisposable, ITeamFoundationIdentityService

TeamFoundationIdentityService 型別會公開下列成員。

屬性

  名稱 說明
公用屬性 ReadBatchSizeLimit

回頁首

方法

  名稱 說明
公用方法 AddGroupAdministrator 讓傳入的Team Foundation表示該工期為傳入的群組的系統管理員的身分識別。
公用方法 AddMemberToApplicationGroup(TeamFoundationRequestContext, IdentityDescriptor, IdentityDescriptor) 將成員加入至 TFS 群組中。
公用方法 AddMemberToApplicationGroup(TeamFoundationRequestContext, IdentityDescriptor, TeamFoundationIdentity) 將成員加入至 TFS 群組中。
公用方法 AddRecentUser AddRecentUser 用來注意呼叫使用者最近使用過的作用中的使用者。這可讓這個系統追蹤最近的使用者,並使用此清單來改善使用者的選取項目的建議。
公用方法 CreateApplicationGroup(TeamFoundationRequestContext, String, String, String) 建立 TFS 應用程式群組
公用方法 CreateApplicationGroup(TeamFoundationRequestContext, String, String, String, Boolean, Boolean) 建立 TFS 應用程式群組。
公用方法 CreateApplicationGroup(TeamFoundationRequestContext, String, String, String, Boolean, Boolean, Guid)
公用方法 CreateDescriptor
公用方法 CreateScope 建立 TFS 群組領域 (類似於小組專案的範圍)。
公用方法 CreateUser(TeamFoundationRequestContext, String, String, String) 建立Team Foundation與混亂別名的識別身份 (使用者)。使用者具有全域範圍。 它們不限於任何專案。目前唯一使用大小寫,這個函式是以追蹤從另一個環境匯入的識別。因此識別是標示為非作用中。您不想讓它保持作用中狀態,因為它無法使用這個名稱干擾真正的使用中的帳戶。
公用方法 CreateUser(TeamFoundationRequestContext, String, String, String, Guid)
公用方法 DeleteApplicationGroup 刪除 TFS 應用程式群組。
公用方法 DeleteScope 刪除一份 TFS 「 範圍 」。
公用方法 DeleteUser
公用方法 EnsureIsMember(TeamFoundationRequestContext, IdentityDescriptor, IdentityDescriptor) 請確定提供描述元指定的 TFS 群組的成員。
公用方法 EnsureIsMember(TeamFoundationRequestContext, IdentityDescriptor, TeamFoundationIdentity) 請確定提供描述元指定的 TFS 群組的成員。
公用方法 EnsureNotMember 請確定提供描述元不是指定 TFS 群組的成員。
公用方法 EnsureWellKnownGroupExists 請確定已經建立的已知的 TFS 應用程式群組。
公用方法 Equals 判斷指定的物件是否等於目前物件。 (繼承自 Object)。
受保護的方法 Finalize 允許物件在記憶體回收進行回收之前,嘗試釋放資源並執行其他清除作業。 (繼承自 Object)。
公用方法 GetHashCode 做為特定型別的雜湊函式。 (繼承自 Object)。
公用方法 GetIdentityChanges
公用方法 GetMostRecentlyUsedUsers
公用方法 GetPreferredEmailAddress(TeamFoundationRequestContext, Guid)
公用方法 GetPreferredEmailAddress(TeamFoundationRequestContext, Guid, Boolean)
公用方法 GetProjectAdminSid
公用方法 GetScopeInfo 取得 IMS 領域的相關資訊。
公用方法 GetType 取得目前執行個體的 Type。 (繼承自 Object)。
公用方法 IsIdentityCached(TeamFoundationRequestContext, IdentityDescriptor) 已過時。檢查某一特定識別碼會快取。
公用方法 IsIdentityCached(TeamFoundationRequestContext, SecurityIdentifier)
公用方法 IsMember(TeamFoundationRequestContext, IdentityDescriptor, IdentityDescriptor) 擴充成員資格查詢。
公用方法 IsMember(TeamFoundationRequestContext, IdentityDescriptor, IdentityDescriptor, Boolean) 擴充成員資格查詢。
公用方法 ListApplicationGroups(TeamFoundationRequestContext, String, ReadIdentityOptions, IEnumerable<String>)
公用方法 ListApplicationGroups(TeamFoundationRequestContext, String, ReadIdentityOptions, IEnumerable<String>, IdentityPropertyScope) 列出指定範圍中所有的 TFS 應用程式群組。
受保護的方法 MemberwiseClone 建立目前 Object 的淺層複本 (Shallow Copy)。 (繼承自 Object)。
公用方法 ReadFilteredIdentities ReadFilteredIdentities 用來擷取一組以運算式為基礎的識別身份。運算式是一個類似於 SQL WHERE 子句的語法。如需運算式功能相關的詳細資訊,請參閱 QueryExpression 類別的文件。有兩個部分的運算式。有一組,可用來從識別值,則圖像必須 AND'ed 在一起。這些是之類的顯示名稱或 IdentityType 的識別。所有的字串比較會執行不區分大小寫。可以從所有的識別身份的特定屬性: Microsoft.TeamFoundation.Identity 支援: 在 (未來)-直接隸屬的值必須是 TFID。(未來)-在直接或間接成員必須是 TFID 的值。靠近-Specilized 一詞有 「 可延伸附近值所定義的條件必須是 TFID。Microsoft.TeamFoundation.Identity.DisplayName 支援: =-識別的顯示名稱是相等的值。識別的顯示名稱包含-包含的值。StartsWith-識別的顯示名稱是一開始就有 Microsoft.TeamFoundation.Identity.Type 的值。支援: =-值必須是 '群組' 或 '使用者' Microsoft.TeamFoundation.Identity.Scope。支援: =-值必須在字串,表示範圍的有效範圍是 [SERVER],[projecturi],[projectname],並 projecturi。如果沒有提供這種情況,則會使用 [SERVER]。所有其他內容將會相較於 「 可延伸的屬性與識別相關聯。這些比對必須遵循任何已知屬性否則這些 comaprisons 會對可延伸的屬性。 不支援的任何括號。
公用方法 ReadIdentities(TeamFoundationRequestContext, array<IdentityDescriptor[]) 讀取識別碼] 指定的描述項。簡單的多載。
公用方法 ReadIdentities(TeamFoundationRequestContext, array<Guid[]) 讀取由識別Team Foundation編號]。
公用方法 ReadIdentities(TeamFoundationRequestContext, IdentitySearchFactor, array<String[]) 讀取的識別。簡單的多載,請參閱下方。
公用方法 ReadIdentities(TeamFoundationRequestContext, array<IdentityDescriptor[], MembershipQuery, ReadIdentityOptions, IEnumerable<String>)
公用方法 ReadIdentities(TeamFoundationRequestContext, array<Guid[], MembershipQuery, ReadIdentityOptions, IEnumerable<String>) 讀取由識別Team Foundation編號]。 請注意-無成員資格資訊要求時,會執行最快。
公用方法 ReadIdentities(TeamFoundationRequestContext, IdentitySearchFactor, array<String[], MembershipQuery, ReadIdentityOptions, IEnumerable<String>) 讀取的識別。請先嘗試 IMS 的存放區,並選擇性地來源像 AD。識別物件本身的屬性會指出實際的來源。
公用方法 ReadIdentities(TeamFoundationRequestContext, array<IdentityDescriptor[], MembershipQuery, ReadIdentityOptions, IEnumerable<String>, IdentityPropertyScope) 讀取識別碼] 指定的描述項。第一次嘗試 IMS 的存放區。如果沒有找到背景,並選擇性地嘗試像 AD 的來源。識別物件本身的屬性會指出實際的來源。 請注意-無成員資格資訊要求時,會執行最快。
公用方法 ReadIdentities(TeamFoundationRequestContext, array<Guid[], MembershipQuery, ReadIdentityOptions, IEnumerable<String>, IdentityPropertyScope) 讀取由識別Team Foundation識別碼。 請注意-無成員資格資訊要求時,會執行最快。
公用方法 ReadIdentities(TeamFoundationRequestContext, IdentitySearchFactor, array<String[], MembershipQuery, ReadIdentityOptions, IEnumerable<String>, IdentityPropertyScope) 讀取的識別。請先嘗試 IMS 的存放區,並選擇性地來源像 AD。識別物件本身的屬性會指出實際的來源。
公用方法 ReadIdentity(TeamFoundationRequestContext, String) 多載會採用單一搜尋係數,並傳回此順序的符合項目。1.沒有符合的項目時,為 null。2.單一符合項目時,無論是否該身分識別是使用中。3.當沒有使用中的單一識別比對,該識別。
公用方法 ReadIdentity(TeamFoundationRequestContext, IdentitySearchFactor, String) 請參閱多載。
公用方法 ReadIdentity(TeamFoundationRequestContext, IdentityDescriptor, MembershipQuery, ReadIdentityOptions) 多載,單一的描述項。
公用方法 ReadIdentity(TeamFoundationRequestContext, IdentitySearchFactor, String, MembershipQuery, ReadIdentityOptions, IEnumerable<String>) 多載會採用單一搜尋係數,並傳回此順序的符合項目。1.沒有符合的項目時,為 null。2.單一符合項目時,無論是否該身分識別是使用中。3.當沒有使用中的單一識別比對,該識別。
公用方法 ReadIdentity(TeamFoundationRequestContext, IdentityDescriptor, MembershipQuery, ReadIdentityOptions, IEnumerable<String>, IdentityPropertyScope)
公用方法 ReadIdentity(TeamFoundationRequestContext, IdentitySearchFactor, String, MembershipQuery, ReadIdentityOptions, IEnumerable<String>, IdentityPropertyScope) 多載會採用單一搜尋係數,並傳回此順序的符合項目。1.沒有符合的項目時,為 null。2.單一符合項目時,無論是否該身分識別是使用中。3.當沒有使用中的單一識別比對,該識別。
公用方法 ReadIdentityFromSource ReadIdentityFromSource 用來擷取其識別從來源位置 (AD 或 GSS)。
公用方法 ReadRequestIdentity(TeamFoundationRequestContext) 解決授權的使用者要求內容以 TeamFoundationIdentity 相關聯。
公用方法 ReadRequestIdentity(TeamFoundationRequestContext, Boolean) 解決授權的使用者要求內容以 TeamFoundationIdentity 相關聯。
公用方法 RefreshIdentity 現在同步一個身分。此識別必須已經是在 IMS 存放區中。如果識別是一組,也會 (非同步) 同步直接會員的屬性。
公用方法 RemoveGroupAdministrator 移除傳入的Team Foundation從傳入的群組的系統管理員身分識別。
公用方法 RemoveMemberFromApplicationGroup(TeamFoundationRequestContext, IdentityDescriptor, IdentityDescriptor) 從 TFS 群組移除成員。
公用方法 RemoveMemberFromApplicationGroup(TeamFoundationRequestContext, IdentityDescriptor, IdentityDescriptor, Boolean)
公用方法 RenameScope 重新命名一份 TFS 「 範圍 」。
公用方法 SetCustomDisplayName 設定或移除的呼叫使用者自訂的顯示名稱。
公用方法 SetPreferredEmailAddress
公用方法 ToString 傳回表示目前物件的字串。 (繼承自 Object)。
公用方法 TryReadRequestIdentity(TeamFoundationRequestContext, TeamFoundationIdentity%)
公用方法 TryReadRequestIdentity(TeamFoundationRequestContext, Boolean, TeamFoundationIdentity%)
公用方法 UpdateApplicationGroup 更新 TFS 應用程式群組的屬性。
公用方法 UpdateExtendedProperties(TeamFoundationRequestContext, IdentityDescriptor, IEnumerable<PropertyValue>)
公用方法 UpdateExtendedProperties(TeamFoundationRequestContext, IdentityPropertyScope, IdentityDescriptor, IEnumerable<PropertyValue>)
公用方法 UpdateIdentities
公用方法 UpdateIdentity 更新識別屬性。

回頁首

欄位

  名稱 說明
公用欄位 OnPreferredEmailAddressChanged

回頁首

明確介面實作

  名稱 說明
明確介面實作私用方法 IDisposable.Dispose
明確介面實作私用方法 ITeamFoundationService.ServiceEnd
明確介面實作私用方法 ITeamFoundationService.ServiceStart

回頁首

執行緒安全

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

請參閱

參考

Microsoft.TeamFoundation.Framework.Server 命名空間