PermissionsController.HasPermission Method
Namespace: Microsoft.TeamFoundation.Framework.Server
Assembly: Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)
Syntax
'Declaration
<HttpGetAttribute> _
Public Function HasPermission ( _
securityNamespaceId As Guid, _
permissions As Integer, _
token As String, _
alwaysAllowAdministrators As Boolean _
) As Boolean
[HttpGetAttribute]
public bool HasPermission(
Guid securityNamespaceId,
int permissions,
string token,
bool alwaysAllowAdministrators
)
[HttpGetAttribute]
public:
bool HasPermission(
Guid securityNamespaceId,
int permissions,
String^ token,
bool alwaysAllowAdministrators
)
[<HttpGetAttribute>]
member HasPermission :
securityNamespaceId:Guid *
permissions:int *
token:string *
alwaysAllowAdministrators:bool -> bool
public function HasPermission(
securityNamespaceId : Guid,
permissions : int,
token : String,
alwaysAllowAdministrators : boolean
) : boolean
Parameters
- securityNamespaceId
Type: System.Guid
- permissions
Type: System.Int32
- token
Type: System.String
- alwaysAllowAdministrators
Type: System.Boolean
Return Value
Type: System.Boolean
Returns Boolean.
.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.