ISecurityNamespaceExtension.ThrowAccessDeniedException Method

Implementing this function allows the implementer to throw their own type of exception when AccessDenied exceptions must be thrown. If this method does not throw an exception, the standard AccessCheckException will be thrown.

Namespace:  Microsoft.TeamFoundation.Framework.Server
Assembly:  Microsoft.TeamFoundation.Framework.Server (in Microsoft.TeamFoundation.Framework.Server.dll)

Syntax

'Declaration
Sub ThrowAccessDeniedException ( _
    requestContext As TeamFoundationRequestContext, _
    identity As TeamFoundationIdentity, _
    token As String, _
    requestedPermissions As Integer _
)
void ThrowAccessDeniedException(
    TeamFoundationRequestContext requestContext,
    TeamFoundationIdentity identity,
    string token,
    int requestedPermissions
)
void ThrowAccessDeniedException(
    TeamFoundationRequestContext^ requestContext, 
    TeamFoundationIdentity^ identity, 
    String^ token, 
    int requestedPermissions
)
abstract ThrowAccessDeniedException : 
        requestContext:TeamFoundationRequestContext * 
        identity:TeamFoundationIdentity * 
        token:string * 
        requestedPermissions:int -> unit
function ThrowAccessDeniedException(
    requestContext : TeamFoundationRequestContext, 
    identity : TeamFoundationIdentity, 
    token : String, 
    requestedPermissions : int
)

Parameters

  • token
    Type: System.String

    The token the check was performed on.

  • requestedPermissions
    Type: System.Int32

    The permissions that are required to perform the action the caller was trying to perform.

.NET Framework Security

See Also

Reference

ISecurityNamespaceExtension Interface

Microsoft.TeamFoundation.Framework.Server Namespace