Export (0) Print
Expand All
Expand Minimize

Workspace.HasWorkspacePermission Method

Verifies whether the AuthorizedUser object has the specified WorkspacePermissions objects for this workspace.

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

public bool HasWorkspacePermission(
	WorkspacePermissions toCheck
)

Parameters

toCheck
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspacePermissions

WorkspacePermissions to check.

Return Value

Type: System.Boolean
True if the AuthorizedUser object has the requested permissions; otherwise, false.

Show:
© 2014 Microsoft