TeamFoundationSecurityNamespace.EnsureIdentityIsKnown 方法
可確保身分識別不提供的安全性命名空間的安全性群組中。 這個函式只有 Ace 會被保存的方式,而不使用 Api,這個介面上時才能呼叫
命名空間: Microsoft.TeamFoundation.Framework.Server
組件: Microsoft.TeamFoundation.Framework.Server (在 Microsoft.TeamFoundation.Framework.Server.dll 中)
語法
'宣告
Public Function EnsureIdentityIsKnown ( _
requestContext As TeamFoundationRequestContext, _
identity As IdentityDescriptor _
) As Identity
public Identity EnsureIdentityIsKnown(
TeamFoundationRequestContext requestContext,
IdentityDescriptor identity
)
參數
- requestContext
型別:Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
目前要求的內容。
- identity
型別:Microsoft.TeamFoundation.Framework.Server.IdentityDescriptor
確認身分識別不正確。
傳回值
型別:Microsoft.VisualStudio.Services.Identity.Identity
傳回 TeamFoundationIdentity。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。