Constable Authorization Engine 2.0 BETA

AuthorizationPolicy.GetDefinedActionRules Method 

[This is preliminary documentation and subject to change.]

Returns all the ActionRule objects defined for the current authorization context.

[Visual Basic]
Overridable Public Function GetDefinedActionRules( _
   ByVal visible As VisibleOption, _
   ByVal enabled As EnabledOption _
) As ActionRuleCollection
[C#]
public virtual ActionRuleCollection GetDefinedActionRules(
   VisibleOption visible,
   EnabledOption enabled
);

Parameters

visible
What value of the IsVisible property is required.
enabled
What value of the IsEnabled property is required.

Return Value

A collection of ActionRule objects with the required IsVisible and IsEnabled property values.

Remarks

The method enumerates the ActionRules collection and returns all rules defined for the current authorization context with the values of the IsVisible and IsEnabled property corresponding to the visible and enabled arguments, respectively.

See Also

AuthorizationPolicy Class | LaMarvin.Constable Namespace