TeamFoundationVersionControlService.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
Public Function QueryEffectiveItemPermissions ( _
requestContext As TeamFoundationRequestContext, _
workspaceName As String, _
workspaceOwner As String, _
item As String, _
identityName As String _
) As List(Of String)
public List<string> QueryEffectiveItemPermissions(
TeamFoundationRequestContext requestContext,
string workspaceName,
string workspaceOwner,
string item,
string identityName
)
public:
List<String^>^ QueryEffectiveItemPermissions(
TeamFoundationRequestContext^ requestContext,
String^ workspaceName,
String^ workspaceOwner,
String^ item,
String^ identityName
)
member QueryEffectiveItemPermissions :
requestContext:TeamFoundationRequestContext *
workspaceName:string *
workspaceOwner:string *
item:string *
identityName:string -> List<string>
public function QueryEffectiveItemPermissions(
requestContext : TeamFoundationRequestContext,
workspaceName : String,
workspaceOwner : String,
item : String,
identityName : String
) : List<String>
Parameters
requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContextThe request context.
workspaceName
Type: System.StringName of workspace (only used if item is a local path).
workspaceOwner
Type: System.StringOwner of workspace (only used if item is a local path).
item
Type: System.StringServer or local path of item to check.
identityName
Type: System.StringName of user to test permissions of.
Return Value
Type: System.Collections.Generic.List<String>
Array of permission names.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.