Checks for permission to execute actions on objects
Namespace: Microsoft.TeamFoundation.Server
Assembly: Microsoft.TeamFoundation (in microsoft.teamfoundation.dll)
void CheckPermission (
string objectId,
string actionId
)
void CheckPermission (
String objectId,
String actionId
)
function CheckPermission (
objectId : String,
actionId : String
)
Parameters
- objectId
The unique object identifier supplied by the caller. A URI (for artifacts) or a GUID (for all other objects) is recommended.
- actionId
The action for which the specified entity is requesting permission.
Checks for a permission to execute one or more actionId’s on one or more objects with objectId(s). The calling user security context is used.
If permission is not granted, CheckPermission throws an AccessControlException.