Partager via


Repository.QueryEffectiveItemPermissions Method

Computes the permissions for a user against a particular item. Applies the allow and deny lists, inheritance, and group membership rules to produce a simple list of permissions the user has.

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

Syntax

'Declaration
<WebMethodAttribute> _
Public Function QueryEffectiveItemPermissions ( _
    workspaceName As String, _
    workspaceOwner As String, _
    item As String, _
    identityName As String _
) As List(Of String)
[WebMethodAttribute]
public List<string> QueryEffectiveItemPermissions(
    string workspaceName,
    string workspaceOwner,
    string item,
    string identityName
)
[WebMethodAttribute]
public:
List<String^>^ QueryEffectiveItemPermissions(
    String^ workspaceName, 
    String^ workspaceOwner, 
    String^ item, 
    String^ identityName
)
[<WebMethodAttribute>]
member QueryEffectiveItemPermissions : 
        workspaceName:string * 
        workspaceOwner:string * 
        item:string * 
        identityName:string -> List<string> 
public function QueryEffectiveItemPermissions(
    workspaceName : String, 
    workspaceOwner : String, 
    item : String, 
    identityName : String
) : List<String>

Parameters

  • workspaceName
    Type: System.String

    Name of workspace (only used if item is a local path).

  • workspaceOwner
    Type: System.String

    Owner of workspace (only used if item is a local path).

  • item
    Type: System.String

    Server or local path of item to check.

  • identityName
    Type: System.String

    Name of user to test permissions of.

Return Value

Type: System.Collections.Generic.List<String>
Array of permission names.

.NET Framework Security

See Also

Reference

Repository Class

Microsoft.TeamFoundation.VersionControl.Server Namespace