Interface IAuthorizationPolicyCatalog
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Authorization
Assembly: Cephalon.Abstractions.dll
Exposes the authorization policies visible to the current runtime.
public interface IAuthorizationPolicyCatalogProperties
Section titled “Properties”Policies
Section titled “ Policies”Gets all authorization policies visible to the current runtime.
IReadOnlyList<AuthorizationPolicyDescriptor> Policies { get; }Property Value
Section titled “Property Value”IReadOnlyList<AuthorizationPolicyDescriptor>
Methods
Section titled “Methods”GetById(string)
Section titled “ GetById(string)”Gets one authorization policy by its stable identifier.
AuthorizationPolicyDescriptor? GetById(string policyId)Parameters
Section titled “Parameters”policyId string
The authorization-policy identifier to resolve.
Returns
Section titled “Returns”AuthorizationPolicyDescriptor?
The matching policy, or null when it is not active.
GetByMode(AuthorizationMode)
Section titled “ GetByMode(AuthorizationMode)”Gets all authorization policies that support the requested mode.
IReadOnlyList<AuthorizationPolicyDescriptor> GetByMode(AuthorizationMode mode)Parameters
Section titled “Parameters”mode AuthorizationMode
The authorization mode to filter by.
Returns
Section titled “Returns”IReadOnlyList<AuthorizationPolicyDescriptor>
The matching policies, or an empty list when none support the requested mode.