SecurityWebService.HasPermissionByTokenList 方法
傳回清單有所提供引數的使用權限評估。
命名空間: Microsoft.TeamFoundation.Server.Core.WebServices
組件: Microsoft.TeamFoundation.Server.Core (在 Microsoft.TeamFoundation.Server.Core.dll 中)
語法
'宣告
<WebMethodAttribute> _
Public Function HasPermissionByTokenList ( _
namespaceId As Guid, _
tokens As List(Of String), _
descriptor As IdentityDescriptor, _
requestedPermissions As Integer, _
alwaysAllowAdministrators As Boolean _
) As List(Of Boolean)
[WebMethodAttribute]
public List<bool> HasPermissionByTokenList(
Guid namespaceId,
List<string> tokens,
IdentityDescriptor descriptor,
int requestedPermissions,
bool alwaysAllowAdministrators
)
參數
- namespaceId
類型:System.Guid
命名空間此查詢已開啟。
- tokens
類型:System.Collections.Generic.List<String>
要檢查的權杖。
- descriptor
類型:Microsoft.VisualStudio.Services.Identity.IdentityDescriptor
要檢查的識別。
- requestedPermissions
類型:System.Int32
要求的使用權限。
- alwaysAllowAdministrators
類型:System.Boolean
如果這項檢查應該永遠允許系統管理員,則為 true。
傳回值
類型:System.Collections.Generic.List<Boolean>
.NET Framework 安全性
- 完全信任立即呼叫者。這個成員無法供部分信任的程式碼使用。如需詳細資訊,請參閱從部分受信任程式碼使用程式庫。