<PackageReference Include="Microsoft.Azure.Storage.Blob" Version="11.1.2" />

Microsoft.Azure.Storage.Blob.SharedAccessBlobPolicies

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

Gets the number of key/ SharedAccessBlobPolicy 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 SharedAccessBlobPolicy this[string key] { get; set; }

Gets or sets the SharedAccessBlobPolicy 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, SharedAccessBlobPolicy value)

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

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

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

public void Clear()

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

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

Determines whether the collection of shared access policies contains the key and SharedAccessBlobPolicy 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, SharedAccessBlobPolicy>[] array, int arrayIndex)

Copies each key in the key/ SharedAccessBlobPolicy 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, SharedAccessBlobPolicy> item)

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

public bool TryGetValue(string key, out SharedAccessBlobPolicy value)

Gets the SharedAccessBlobPolicy item associated with the specified key.