Class AuthorizationResource
เนื้อหานี้ยังไม่ได้แปลเป็นภาษาไทย แสดงเป็นภาษาอังกฤษแทน
Namespace: Cephalon.Abstractions.Authorization
Assembly: Cephalon.Abstractions.dll
Describes the protected resource being evaluated by an authorization policy.
public sealed class AuthorizationResourceInheritance
Section titled “Inheritance”object ← AuthorizationResource
Inherited Members
Section titled “Inherited Members”object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()
Constructors
Section titled “Constructors”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)Parameters
Section titled “Parameters”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.
Properties
Section titled “Properties”Attributes
Section titled “ Attributes”Gets the attributes associated with the resource.
public IReadOnlyDictionary<string, string> Attributes { get; }Property Value
Section titled “Property Value”IReadOnlyDictionary<string, string>
OwnerSubjectId
Section titled “ OwnerSubjectId”Gets the owning subject identifier when one is known.
public string? OwnerSubjectId { get; }Property Value
Section titled “Property Value”ResourceId
Section titled “ ResourceId”Gets the stable resource identifier when one is known.
public string? ResourceId { get; }Property Value
Section titled “Property Value”ResourceType
Section titled “ ResourceType”Gets the logical resource type identifier.
public string ResourceType { get; }Property Value
Section titled “Property Value”TenantId
Section titled “ TenantId”Gets the tenant identifier associated with the resource.
public string? TenantId { get; }