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

Class AuthorizationResource

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

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

Describes the protected resource being evaluated by an authorization policy.

public sealed class AuthorizationResource

objectAuthorizationResource

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

AuthorizationResource(string, string?, string?, string?, IReadOnlyDictionary<string, string>?)

Section titled “ AuthorizationResource(string, string?, string?, string?, IReadOnlyDictionary<string, string>?)”

Creates a new authorization resource.

public AuthorizationResource(string resourceType, string? resourceId = null, string? tenantId = null, string? ownerSubjectId = null, IReadOnlyDictionary<string, string>? attributes = null)

resourceType string

The logical resource type identifier.

resourceId string?

The stable resource identifier when one is known.

tenantId string?

The tenant identifier associated with the resource.

ownerSubjectId string?

The owning subject identifier when one is known.

attributes IReadOnlyDictionary<string, string>?

Optional attributes associated with the resource.

Gets the attributes associated with the resource.

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

IReadOnlyDictionary<string, string>

Gets the owning subject identifier when one is known.

public string? OwnerSubjectId { get; }

string?

Gets the stable resource identifier when one is known.

public string? ResourceId { get; }

string?

Gets the logical resource type identifier.

public string ResourceType { get; }

string

Gets the tenant identifier associated with the resource.

public string? TenantId { get; }

string?