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
'宣告
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
- toCheck
Type: Microsoft.TeamFoundation.VersionControl.Client.WorkspacePermissions
WorkspacePermissions to check.
Return Value
Type: System.Boolean
True if the AuthorizedUser has the requested permissions. False otherwise.
.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.