Share via


IAuthorizationProvider.Authorize Method

Evaluates the specified authority against the specified context.

Namespace:  Microsoft.Practices.EnterpriseLibrary.Security
Assembly:  Microsoft.Practices.EnterpriseLibrary.Security (in Microsoft.Practices.EnterpriseLibrary.Security.dll)

Syntax

'Declaration
Function Authorize ( _
    principal As IPrincipal, _
    context As String _
) As Boolean
bool Authorize(
    IPrincipal principal,
    string context
)
bool Authorize(
    IPrincipal^ principal, 
    String^ context
)
function Authorize(
    principal : IPrincipal, 
    context : String
) : boolean

Parameters

Return Value

True if the expression evaluates to true, otherwise false.

See Also

IAuthorizationProvider Interface

Microsoft.Practices.EnterpriseLibrary.Security Namespace