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.VisualStudio.Services.Identity.IdentityDescriptor
確定的識別有效。
傳回值
類型:Microsoft.VisualStudio.Services.Identity.Identity
傳回 Identity。
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。