<PackageReference Include="Microsoft.Azure.Storage.File" Version="11.1.4" />

Microsoft.Azure.Storage.File.SharedAccessFilePolicies

Represents the collection of shared access policies defined for a share.
public int Count { get; }

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

public bool IsReadOnly { get; }

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

public SharedAccessFilePolicy this[string key] { get; set; }

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

public ICollection<string> Keys { get; }

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

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

public void Add(string key, SharedAccessFilePolicy value)

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

public void Add(KeyValuePair<string, SharedAccessFilePolicy> item)

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

public void Clear()

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

public bool Contains(KeyValuePair<string, SharedAccessFilePolicy> item)

Determines whether the collection of shared access policies contains the key and SharedAccessFilePolicy value in the specified KeyValuePair<T, U> object.

public bool ContainsKey(string key)

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

public void CopyTo(KeyValuePair<string, SharedAccessFilePolicy>[] array, int arrayIndex)

Copies each key in the key/ SharedAccessFilePolicy value pair to a compatible one-dimensional array, starting at the specified index of the target array.

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

public bool Remove(string key)

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

public bool Remove(KeyValuePair<string, SharedAccessFilePolicy> item)

Removes the SharedAccessFilePolicy value, specified in the KeyValuePair<T, U> object, from the shared access policies collection.

public bool TryGetValue(string key, out SharedAccessFilePolicy value)

Gets the SharedAccessFilePolicy item associated with the specified key.