共用方式為


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
)

參數

傳回值

型別:Microsoft.VisualStudio.Services.Identity.Identity
傳回 TeamFoundationIdentity

.NET Framework 安全性

請參閱

參考

TeamFoundationSecurityNamespace 類別

Microsoft.TeamFoundation.Framework.Server 命名空間