SharedAccessAuthorizationRule SharedAccessAuthorizationRule Class

Defines the authorization rule for shared access operation.

Syntax

Declaration

[DataContract(Name = "SharedAccessAuthorizationRule", Namespace = "http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
public class SharedAccessAuthorizationRule : AuthorizationRule<DataContract(Name:="SharedAccessAuthorizationRule", Namespace:="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")>
Public Class SharedAccessAuthorizationRule
    Inherits AuthorizationRule

Inheritance Hierarchy

Constructors summary

Initializes a new instance of the SharedAccessAuthorizationRule class.

Initializes a new instance of the SharedAccessAuthorizationRule class.

Initializes a new instance of the SharedAccessAuthorizationRule class.

Fields summary

Properties summary

Gets or sets the authorization rule key name.

Gets or sets the primary key for the authorization rule.

Gets or sets the secondary key for the authorization rule.

Methods summary

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

Generates the random key for the authorization rule.

Returns the hash code for this instance.

Checks the validity of the authorization rule.

Checks the validity of the specified access rights.

Constructors

  • SharedAccessAuthorizationRule(String, IEnumerable<AccessRights>)
    SharedAccessAuthorizationRule(String, IEnumerable(Of AccessRights))

    Initializes a new instance of the SharedAccessAuthorizationRule class.

    public SharedAccessAuthorizationRule(string keyName, IEnumerable<AccessRights> rights)Public Sub New(keyName As String, rights As IEnumerable(Of AccessRights))

    Parameters

  • SharedAccessAuthorizationRule(String, String, IEnumerable<AccessRights>)
    SharedAccessAuthorizationRule(String, String, IEnumerable(Of AccessRights))

    Initializes a new instance of the SharedAccessAuthorizationRule class.

    public SharedAccessAuthorizationRule(string keyName, string primaryKey, IEnumerable<AccessRights> rights)Public Sub New(keyName As String, primaryKey As String, rights As IEnumerable(Of AccessRights))

    Parameters

  • SharedAccessAuthorizationRule(String, String, String, IEnumerable<AccessRights>)
    SharedAccessAuthorizationRule(String, String, String, IEnumerable(Of AccessRights))

    Initializes a new instance of the SharedAccessAuthorizationRule class.

    public SharedAccessAuthorizationRule(string keyName, string primaryKey, string secondaryKey, IEnumerable<AccessRights> rights)Public Sub New(keyName As String, primaryKey As String, secondaryKey As String, rights As IEnumerable(Of AccessRights))

    Parameters

Fields

  • Serializer
    Serializer
    public static readonly DataContractSerializer SerializerPublic Shared ReadOnly Serializer As DataContractSerializer

Properties

  • KeyName
    KeyName

    Gets or sets the authorization rule key name.

    public override sealed string KeyName { get; set; }Public NotOverridable Overrides Property KeyName As String

    Property Value

    Overrides

  • PrimaryKey
    PrimaryKey

    Gets or sets the primary key for the authorization rule.

    public string PrimaryKey { get; set; }Public Property PrimaryKey As String

    Property Value

  • SecondaryKey
    SecondaryKey

    Gets or sets the secondary key for the authorization rule.

    public string SecondaryKey { get; set; }Public Property SecondaryKey As String

    Property Value

    • The secondary key for the authorization rule.

Methods

Attributes

System.Runtime.Serialization.DataContractAttribute

Details

Namespace

Microsoft.ServiceBus.Messaging

Assembly

Microsoft.ServiceBus.dll