Condividi tramite


SharedAccessTablePolicies Class

Definition

Represents the collection of shared access policies defined for a table.

public sealed class SharedAccessTablePolicies : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,Microsoft.Azure.Cosmos.Table.SharedAccessTablePolicy>>, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Cosmos.Table.SharedAccessTablePolicy>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Azure.Cosmos.Table.SharedAccessTablePolicy>>
type SharedAccessTablePolicies = class
    interface IDictionary<string, SharedAccessTablePolicy>
    interface ICollection<KeyValuePair<string, SharedAccessTablePolicy>>
    interface seq<KeyValuePair<string, SharedAccessTablePolicy>>
    interface IEnumerable
Public NotInheritable Class SharedAccessTablePolicies
Implements ICollection(Of KeyValuePair(Of String, SharedAccessTablePolicy)), IDictionary(Of String, SharedAccessTablePolicy), IEnumerable(Of KeyValuePair(Of String, SharedAccessTablePolicy))
Inheritance
SharedAccessTablePolicies
Implements

Constructors

SharedAccessTablePolicies()

Properties

Count

Gets the number of key/SharedAccessTablePolicy value pairs contained in the shared access policies collection.

IsReadOnly

Gets a value indicating whether the collection of shared access policies is read-only.

Item[String]

Gets or sets the SharedAccessTablePolicy item associated with the specified key.

Keys

Gets a collection containing the keys in the shared access policies collection.

Values

Gets a collection containing the values in the shared access policies collection.

Methods

Add(KeyValuePair<String,SharedAccessTablePolicy>)

Adds the specified key/SharedAccessTablePolicy value, stored in a KeyValuePair<TKey,TValue>, to the collection of shared access policies.

Add(String, SharedAccessTablePolicy)

Adds the specified key and SharedAccessTablePolicy value to the collection of shared access policies.

Clear()

Removes all keys and SharedAccessTablePolicy values from the shared access collection.

Contains(KeyValuePair<String,SharedAccessTablePolicy>)

Determines whether the collection of shared access policies contains the key and SharedAccessTablePolicy value in the specified KeyValuePair<TKey,TValue> object.

ContainsKey(String)

Determines whether the collection of shared access policies contains the specified key.

CopyTo(KeyValuePair<String,SharedAccessTablePolicy>[], Int32)

Copies each key/SharedAccessTablePolicy value pair in the shared access policies collection to a compatible one-dimensional array, starting at the specified index of the target array.

GetEnumerator()

Returns an enumerator that iterates through the collection of shared access policies.

Remove(KeyValuePair<String,SharedAccessTablePolicy>)

Removes the SharedAccessTablePolicy value, specified in the KeyValuePair<TKey,TValue> object, from the shared access policies collection.

Remove(String)

Removes the value with the specified key from the shared access policies collection.

TryGetValue(String, SharedAccessTablePolicy)

Gets the SharedAccessTablePolicy item associated with the specified key.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

Extension Methods

GetValueOrAdd<TKey,TValue>(IDictionary<TKey,TValue>, TKey, Func<TKey,TValue>)

Gets or adds the value associated with specified key.

GetValueOrDefault<TKey,TValue>(IDictionary<TKey,TValue>, TKey, TValue)

Gets the value associated with specified key.

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.

AddRange<TKey,TValue>(IDictionary<TKey,TValue>, IReadOnlyDictionary<TKey,TValue>)
AsFormattedString<TKey,TValue>(IDictionary<TKey,TValue>)

Applies to