BlobsStorage.WriteAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
WriteAsync(IDictionary<String,Object>, CancellationToken)
Writes storage items to storage.
public System.Threading.Tasks.Task WriteAsync(System.Collections.Generic.IDictionary<string,object> changes, System.Threading.CancellationToken cancellationToken = default);
abstract member WriteAsync : System.Collections.Generic.IDictionary<string, obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.WriteAsync : System.Collections.Generic.IDictionary<string, obj> * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WriteAsync (changes As IDictionary(Of String, Object), Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- changes
- IDictionary<String,Object>
The items to write, indexed by key.
- cancellationToken
- CancellationToken
A cancellation token that can be used by other objects or threads to receive notice of cancellation.
Returns
A task that represents the work queued to execute.
Implements
Applies to
WriteAsync<TStoreItem>(IDictionary<String,TStoreItem>, CancellationToken)
public System.Threading.Tasks.Task WriteAsync<TStoreItem>(System.Collections.Generic.IDictionary<string,TStoreItem> changes, System.Threading.CancellationToken cancellationToken = default) where TStoreItem : class;
abstract member WriteAsync : System.Collections.Generic.IDictionary<string, 'StoreItem (requires 'StoreItem : null)> * System.Threading.CancellationToken -> System.Threading.Tasks.Task (requires 'StoreItem : null)
override this.WriteAsync : System.Collections.Generic.IDictionary<string, 'StoreItem (requires 'StoreItem : null)> * System.Threading.CancellationToken -> System.Threading.Tasks.Task (requires 'StoreItem : null)
Public Function WriteAsync(Of TStoreItem As Class) (changes As IDictionary(Of String, TStoreItem), Optional cancellationToken As CancellationToken = Nothing) As Task
Type Parameters
- TStoreItem
Parameters
- changes
- IDictionary<String,TStoreItem>
- cancellationToken
- CancellationToken
Returns
Implements
Applies to
WriteAsync<TValue>(IReadOnlyDictionary<String,TValue>, StorageWriteOptions, CancellationToken)
public System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string,Microsoft.Agents.Storage.StorageWriteResult>> WriteAsync<TValue>(System.Collections.Generic.IReadOnlyDictionary<string,TValue> changes, Microsoft.Agents.Storage.StorageWriteOptions options, System.Threading.CancellationToken cancellationToken = default) where TValue : class;
abstract member WriteAsync : System.Collections.Generic.IReadOnlyDictionary<string, 'Value (requires 'Value : null)> * Microsoft.Agents.Storage.StorageWriteOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Agents.Storage.StorageWriteResult>> (requires 'Value : null)
override this.WriteAsync : System.Collections.Generic.IReadOnlyDictionary<string, 'Value (requires 'Value : null)> * Microsoft.Agents.Storage.StorageWriteOptions * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.Collections.Generic.IReadOnlyDictionary<string, Microsoft.Agents.Storage.StorageWriteResult>> (requires 'Value : null)
Public Function WriteAsync(Of TValue As Class) (changes As IReadOnlyDictionary(Of String, TValue), options As StorageWriteOptions, Optional cancellationToken As CancellationToken = Nothing) As Task(Of IReadOnlyDictionary(Of String, StorageWriteResult))
Type Parameters
- TValue
Parameters
- changes
- IReadOnlyDictionary<String,TValue>
- options
- StorageWriteOptions
- cancellationToken
- CancellationToken