ข้ามไปยังเนื้อหา

Class AuthorizationPolicyDescriptor

เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน

Namespace: Cephalon.Abstractions.Authorization
Assembly: Cephalon.Abstractions.dll

Describes one authorization policy surface contributed to the active runtime.

public sealed class AuthorizationPolicyDescriptor

objectAuthorizationPolicyDescriptor

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

AuthorizationPolicyDescriptor(string, string, string, IReadOnlyList<AuthorizationMode>?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)

Section titled “ AuthorizationPolicyDescriptor(string, string, string, IReadOnlyList<AuthorizationMode>?, IReadOnlyList<string>?, IReadOnlyDictionary<string, string>?)”

Creates a new authorization policy descriptor.

public AuthorizationPolicyDescriptor(string id, string displayName, string description, IReadOnlyList<AuthorizationMode>? modes = null, IReadOnlyList<string>? tags = null, IReadOnlyDictionary<string, string>? metadata = null)

id string

The stable authorization-policy identifier.

displayName string

The operator-facing authorization-policy name.

description string

The human-readable authorization-policy description.

modes IReadOnlyList<AuthorizationMode>?

The authorization modes supported by the policy.

tags IReadOnlyList<string>?

Optional descriptive tags associated with the policy.

metadata IReadOnlyDictionary<string, string>?

Optional operator-facing metadata associated with the policy.

Gets the human-readable authorization-policy description.

public string Description { get; }

string

Gets the operator-facing authorization-policy name.

public string DisplayName { get; }

string

Gets the stable authorization-policy identifier.

public string Id { get; }

string

Gets operator-facing metadata associated with the policy.

public IReadOnlyDictionary<string, string> Metadata { get; }

IReadOnlyDictionary<string, string>

Gets the authorization modes supported by the policy.

public IReadOnlyList<AuthorizationMode> Modes { get; }

IReadOnlyList<AuthorizationMode>

Gets descriptive tags associated with the policy.

public IReadOnlyList<string> Tags { get; }

IReadOnlyList<string>