[This is preliminary documentation and is subject to change.]
Checks the action represented by MemberInfo by checking the permission-derived attributes and returns false if
any of authorization attributes do not pass
Namespace: NFX.SecurityAssembly: NFX (in NFX.dll) Version: 3.0.0.1 (3.0.0.1)
public static bool AuthorizeAction(
MemberInfo actionInfo,
ISession session = null,
GetSessionFunc getSessionFunc = null
)
public static bool AuthorizeAction(
MemberInfo actionInfo,
ISession session = null,
GetSessionFunc getSessionFunc = null
)
Public Shared Function AuthorizeAction (
actionInfo As MemberInfo,
Optional session As ISession = Nothing,
Optional getSessionFunc As GetSessionFunc = Nothing
) As Boolean
Public Shared Function AuthorizeAction (
actionInfo As MemberInfo,
Optional session As ISession = Nothing,
Optional getSessionFunc As GetSessionFunc = Nothing
) As Boolean
public:
static bool AuthorizeAction(
MemberInfo^ actionInfo,
ISession^ session = nullptr,
GetSessionFunc^ getSessionFunc = nullptr
)
public:
static bool AuthorizeAction(
MemberInfo^ actionInfo,
ISession^ session = nullptr,
GetSessionFunc^ getSessionFunc = nullptr
)
static member AuthorizeAction :
actionInfo : MemberInfo *
?session : ISession *
?getSessionFunc : GetSessionFunc
(* Defaults:
let _session = defaultArg session null
let _getSessionFunc = defaultArg getSessionFunc null
*)
-> bool
static member AuthorizeAction :
actionInfo : MemberInfo *
?session : ISession *
?getSessionFunc : GetSessionFunc
(* Defaults:
let _session = defaultArg session null
let _getSessionFunc = defaultArg getSessionFunc null
*)
-> bool
Return Value
Type:
Boolean