共用方式為


SharedAccessFilePolicies.Add Method

Definition

Overloads

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.

Add(KeyValuePair<String,SharedAccessFilePolicy>)

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

public void Add (System.Collections.Generic.KeyValuePair<string,Microsoft.Azure.Storage.File.SharedAccessFilePolicy> item);
abstract member Add : System.Collections.Generic.KeyValuePair<string, Microsoft.Azure.Storage.File.SharedAccessFilePolicy> -> unit
override this.Add : System.Collections.Generic.KeyValuePair<string, Microsoft.Azure.Storage.File.SharedAccessFilePolicy> -> unit
Public Sub Add (item As KeyValuePair(Of String, SharedAccessFilePolicy))

Parameters

item
KeyValuePair<String,SharedAccessFilePolicy>

The KeyValuePair<TKey,TValue> object, containing a key/SharedAccessFilePolicy value pair, to add to the shared access policies collection.

Implements

Applies to

Add(String, SharedAccessFilePolicy)

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

public void Add (string key, Microsoft.Azure.Storage.File.SharedAccessFilePolicy value);
abstract member Add : string * Microsoft.Azure.Storage.File.SharedAccessFilePolicy -> unit
override this.Add : string * Microsoft.Azure.Storage.File.SharedAccessFilePolicy -> unit
Public Sub Add (key As String, value As SharedAccessFilePolicy)

Parameters

key
String

The key of the SharedAccessFilePolicy value to add.

value
SharedAccessFilePolicy

The SharedAccessFilePolicy value to add the collection of shared access policies.

Implements

Applies to