Compartilhar via


Workspace.HasWorkspacePermission Method

Checks to see whether the AuthorizedUser has the provided WorkspacePermissions on this workspace.

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

Syntax

'Declaração
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 has the requested permissions. False otherwise.

.NET Framework Security

See Also

Reference

Workspace Class

Microsoft.TeamFoundation.VersionControl.Client Namespace