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