Share via


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)

Syntax

'Declaration
Public Function HasWorkspacePermission ( _
    toCheck As WorkspacePermissions _
) As Boolean
public bool HasWorkspacePermission(
    WorkspacePermissions toCheck
)
public:
bool HasWorkspacePermission(
    WorkspacePermissions toCheck
)
member HasWorkspacePermission : 
        toCheck:WorkspacePermissions -> bool
public function HasWorkspacePermission(
    toCheck : WorkspacePermissions
) : boolean

Parameters

Return Value

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

.NET Framework Security

See Also

Reference

Workspace Class

Microsoft.TeamFoundation.VersionControl.Client Namespace