Delen via


Repository.QueryItemPermissions Method

Returns permission information for given items.

Namespace:  Microsoft.TeamFoundation.VersionControl.Server
Assembly:  Microsoft.TeamFoundation.VersionControl.Server (in Microsoft.TeamFoundation.VersionControl.Server.dll)

Syntax

'Declaration
<WebMethodAttribute> _
Public Function QueryItemPermissions ( _
    workspaceName As String, _
    workspaceOwner As String, _
    itemSpecs As ItemSpec(), _
    identityNames As String(), _
    <OutAttribute> ByRef failures As List(Of Failure) _
) As List(Of ItemSecurity)
[WebMethodAttribute]
public List<ItemSecurity> QueryItemPermissions(
    string workspaceName,
    string workspaceOwner,
    ItemSpec[] itemSpecs,
    string[] identityNames,
    out List<Failure> failures
)
[WebMethodAttribute]
public:
List<ItemSecurity^>^ QueryItemPermissions(
    String^ workspaceName, 
    String^ workspaceOwner, 
    array<ItemSpec^>^ itemSpecs, 
    array<String^>^ identityNames, 
    [OutAttribute] List<Failure^>^% failures
)
[<WebMethodAttribute>]
member QueryItemPermissions : 
        workspaceName:string * 
        workspaceOwner:string * 
        itemSpecs:ItemSpec[] * 
        identityNames:string[] * 
        failures:List<Failure> byref -> List<ItemSecurity> 
public function QueryItemPermissions(
    workspaceName : String, 
    workspaceOwner : String, 
    itemSpecs : ItemSpec[], 
    identityNames : String[], 
    failures : List<Failure>
) : List<ItemSecurity>

Parameters

  • workspaceName
    Type: System.String

    Name of workspace if a local path is specified. Null/empty otherwise.

  • workspaceOwner
    Type: System.String

    Name of workspace owner if a local path is specified. Null/empty otherwise.

  • identityNames
    Type: array<System.String[]

    If not-null, only returns permissions for these identities.

Return Value

Type: System.Collections.Generic.List<ItemSecurity>

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace