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
- principal
Type: System.Security.Principal.IPrincipal
Must be an IPrincipal object.
- context
Type: System.String
Name of the rule to evaluate.
Return Value
True if the expression evaluates to true, otherwise false.