共用方式為


AuthorizationRule Class

Definition

Defines the Azure Service Bus authorization rule that is used to determine whether an operation is permissible or not.

[System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.AllowRule))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.IpFilterAuthorizationRule))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.PrivateEndpointAuthorizationRule))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.VirtualNetworkAuthorizationRule))]
[System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.SharedAccessAuthorizationRule))]
public abstract class AuthorizationRule
[<System.Runtime.Serialization.DataContract(Namespace="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.AllowRule))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.IpFilterAuthorizationRule))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.PrivateEndpointAuthorizationRule))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.VirtualNetworkAuthorizationRule))>]
[<System.Runtime.Serialization.KnownType(typeof(Microsoft.ServiceBus.Messaging.SharedAccessAuthorizationRule))>]
type AuthorizationRule = class
Public MustInherit Class AuthorizationRule
Inheritance
AuthorizationRule
Derived
Attributes

Fields

NameIdentifierClaimType

The name identifier claim rule.

RoleClaimType

The role role claim rule.

RoleRoleClaimType

The role role claim rule.

SharedAccessKeyClaimType

The shared access key claim rule.

ShortNameIdentifierClaimType

The short name identifier claim rule.

ShortUpnClaimType

The short UPN claim rule.

UpnClaimType

The UPN claim rule.

Properties

ClaimType

Gets or sets the claim type.

ClaimValue

Gets or sets the claim value which is either ‘Send’, ‘Listen’, or ‘Manage’.

CreatedTime

Gets or sets the date and time when the authorization rule was created.

IssuerName

Gets or sets the name identifier of the issuer.

KeyName

Gets or sets the authorization rule key name.

ModifiedTime

Gets or sets the date and time when the authorization rule was modified.

Revision

Gets or sets the modification revision number.

Rights

Gets or sets the list of rights.

Methods

Clone()

Creates a copy of AuthorizationRule.

Equals(Object)

Determines whether the specified object is equal to the current object.

GetHashCode()

Returns the hash code for this instance.

OnValidate()

Enables derived classes to provide custom handling when validating the authorization rule.

ValidateRights(IEnumerable<AccessRights>)

Checks the validity of the specified access rights.

Applies to