AuthorizationRules Class

Definition

Represents a collection of AuthorizationRule.

[System.Runtime.Serialization.CollectionDataContract(ItemName="AuthorizationRule", Name="AuthorizationRules", Namespace="http://schemas.microsoft.com/netservices/2010/10/servicebus/connect")]
public class AuthorizationRules : System.Collections.Generic.ICollection<Microsoft.Azure.NotificationHubs.Messaging.AuthorizationRule>, System.Collections.Generic.IEnumerable<Microsoft.Azure.NotificationHubs.Messaging.AuthorizationRule>
type AuthorizationRules = class
    interface ICollection<AuthorizationRule>
    interface seq<AuthorizationRule>
    interface IEnumerable
Public Class AuthorizationRules
Implements ICollection(Of AuthorizationRule), IEnumerable(Of AuthorizationRule)
Inheritance
System.Object
AuthorizationRules
Attributes
System.Runtime.Serialization.CollectionDataContractAttribute
Implements
System.Collections.Generic.ICollection<AuthorizationRule> System.Collections.Generic.IEnumerable<AuthorizationRule>

Constructors

AuthorizationRules()

Initializes a new instance of the AuthorizationRules class.

AuthorizationRules(IEnumerable<AuthorizationRule>)

Initializes a new instance of the AuthorizationRules class with a list of AuthorizationRule.

Fields

innerCollection

Specifies the inner collection.

Serializer

Specifies the serializer for serializing and deserializing the object.

Properties

Count

Gets or sets the number of AuthorizationRule contained in the collection.

IsReadOnly

Gets or sets whether the AuthorizationRules is read only.

RequiresEncryption

Gets a value that indicates whether the AuthorizationRules requires encryption.

Methods

Add(AuthorizationRule)

Adds the specified AuthorizationRule into the collection.

Clear()

Clears all elements in the collection.

Contains(AuthorizationRule)

Determines whether the specified item exists in the collection.

CopyTo(AuthorizationRule[], Int32)

Copies the elements into an array starting at the specified array index.

GetEnumerator()

Gets the enumerator that iterates through the collection.

GetRules(Predicate<AuthorizationRule>)

Gets the sets of AuthorizationRule.

GetRules(String)

Gets the set of AuthorizationRule that matches the specified value.

HasEqualRuntimeBehavior(AuthorizationRules)

Determines whether the specified AuthorizationRules has equal runtime behavior as this current object.

Remove(AuthorizationRule)

Removes the specified AuthorizationRule from the collection.

TryGetSharedAccessAuthorizationRule(String, SharedAccessAuthorizationRule)

Gets the rule associated with the specified key.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Gets the enumerator that iterates through the collection.

Extension Methods

ToCommaSeparatedString<T>(IEnumerable<T>)

Converts the elements of a collection to strings and concatenates them into a comma-separated list, or returns null for null or empty collections.

Applies to