Delen via


DefaultSecurityNamespaceExtension.ThrowAccessDeniedException Method

The default implementation of ThrowAccessDeniedException which throws the generic AccessCheckException.

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

Syntax

'Declaration
Public Overridable Sub ThrowAccessDeniedException ( _
    requestContext As TeamFoundationRequestContext, _
    identity As Identity, _
    token As String, _
    requestedPermissions As Integer _
)
public virtual void ThrowAccessDeniedException(
    TeamFoundationRequestContext requestContext,
    Identity identity,
    string token,
    int requestedPermissions
)
public:
virtual void ThrowAccessDeniedException(
    TeamFoundationRequestContext^ requestContext, 
    Identity^ identity, 
    String^ token, 
    int requestedPermissions
)
abstract ThrowAccessDeniedException : 
        requestContext:TeamFoundationRequestContext * 
        identity:Identity * 
        token:string * 
        requestedPermissions:int -> unit  
override ThrowAccessDeniedException : 
        requestContext:TeamFoundationRequestContext * 
        identity:Identity * 
        token:string * 
        requestedPermissions:int -> unit
public function ThrowAccessDeniedException(
    requestContext : TeamFoundationRequestContext, 
    identity : Identity, 
    token : String, 
    requestedPermissions : int
)

Parameters

Implements

ISecurityNamespaceExtension.ThrowAccessDeniedException(TeamFoundationRequestContext, Identity, String, Int32)

.NET Framework Security

See Also

Reference

DefaultSecurityNamespaceExtension Class

Microsoft.TeamFoundation.Framework.Server Namespace