共用方式為


SharedAccessFilePolicies Class

Definition

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

public sealed class SharedAccessFilePolicies : System.Collections.Generic.ICollection<System.Collections.Generic.KeyValuePair<string,Microsoft.Azure.Storage.File.SharedAccessFilePolicy>>, System.Collections.Generic.IDictionary<string,Microsoft.Azure.Storage.File.SharedAccessFilePolicy>, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<string,Microsoft.Azure.Storage.File.SharedAccessFilePolicy>>
type SharedAccessFilePolicies = class
    interface IDictionary<string, SharedAccessFilePolicy>
    interface ICollection<KeyValuePair<string, SharedAccessFilePolicy>>
    interface seq<KeyValuePair<string, SharedAccessFilePolicy>>
    interface IEnumerable
Public NotInheritable Class SharedAccessFilePolicies
Implements ICollection(Of KeyValuePair(Of String, SharedAccessFilePolicy)), IDictionary(Of String, SharedAccessFilePolicy), IEnumerable(Of KeyValuePair(Of String, SharedAccessFilePolicy))
Inheritance
SharedAccessFilePolicies
Implements

Constructors

SharedAccessFilePolicies()

Properties

Count

Gets the number of key/SharedAccessFilePolicy 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 SharedAccessFilePolicy 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,SharedAccessFilePolicy>)

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

Add(String, SharedAccessFilePolicy)

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

Clear()

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

Contains(KeyValuePair<String,SharedAccessFilePolicy>)

Determines whether the collection of shared access policies contains the key and SharedAccessFilePolicy 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,SharedAccessFilePolicy>[], Int32)

Copies each key in the key/SharedAccessFilePolicy value pair 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,SharedAccessFilePolicy>)

Removes the SharedAccessFilePolicy 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, SharedAccessFilePolicy)

Gets the SharedAccessFilePolicy item associated with the specified key.

Explicit Interface Implementations

IEnumerable.GetEnumerator()

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

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.

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

Applies to