AIProjectMemoryStores.UpdateMemoryStoreAsync 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
| Name | Description |
|---|---|
| UpdateMemoryStoreAsync(String, BinaryContent, RequestOptions) |
[Protocol Method] Update a memory store.
|
| UpdateMemoryStoreAsync(String, String, IDictionary<String,String>, CancellationToken) |
Update a memory store. |
UpdateMemoryStoreAsync(String, BinaryContent, RequestOptions)
- Source:
- AIProjectMemoryStores.cs
[Protocol Method] Update a memory store.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult> UpdateMemoryStoreAsync(string name, System.ClientModel.BinaryContent content, System.ClientModel.Primitives.RequestOptions options = default);
abstract member UpdateMemoryStoreAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
override this.UpdateMemoryStoreAsync : string * System.ClientModel.BinaryContent * System.ClientModel.Primitives.RequestOptions -> System.Threading.Tasks.Task<System.ClientModel.ClientResult>
Public Overridable Function UpdateMemoryStoreAsync (name As String, content As BinaryContent, Optional options As RequestOptions = Nothing) As Task(Of ClientResult)
Parameters
- name
- String
The name of the memory store to update.
- content
- BinaryContent
The content to send as the body of the request.
- options
- RequestOptions
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
name or content is null.
name is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
UpdateMemoryStoreAsync(String, String, IDictionary<String,String>, CancellationToken)
- Source:
- AIProjectMemoryStores.cs
Update a memory store.
public virtual System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Memory.MemoryStore>> UpdateMemoryStoreAsync(string name, string description = default, System.Collections.Generic.IDictionary<string,string> metadata = default, System.Threading.CancellationToken cancellationToken = default);
abstract member UpdateMemoryStoreAsync : string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Memory.MemoryStore>>
override this.UpdateMemoryStoreAsync : string * string * System.Collections.Generic.IDictionary<string, string> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<System.ClientModel.ClientResult<Azure.AI.Projects.Memory.MemoryStore>>
Public Overridable Function UpdateMemoryStoreAsync (name As String, Optional description As String = Nothing, Optional metadata As IDictionary(Of String, String) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ClientResult(Of MemoryStore))
Parameters
- name
- String
The name of the memory store to update.
- description
- String
A human-readable description of the memory store.
- metadata
- IDictionary<String,String>
Arbitrary key-value metadata to associate with the memory store.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
name is null.
name is an empty string, and was expected to be non-empty.
Service returned a non-success status code.