AIProjectMemoryStoresOperations.GetMemoryStore 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 |
|---|---|
| GetMemoryStore(String, RequestOptions) |
[Protocol Method] Retrieve a memory store.
|
| GetMemoryStore(String, CancellationToken) |
Retrieve a memory store. |
GetMemoryStore(String, RequestOptions)
[Protocol Method] Retrieve a memory store.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual System.ClientModel.ClientResult GetMemoryStore(string name, System.ClientModel.Primitives.RequestOptions options);
abstract member GetMemoryStore : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
override this.GetMemoryStore : string * System.ClientModel.Primitives.RequestOptions -> System.ClientModel.ClientResult
Public Overridable Function GetMemoryStore (name As String, options As RequestOptions) As ClientResult
Parameters
- name
- String
The name of the memory store to retrieve.
- 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 is null.
name is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetMemoryStore(String, CancellationToken)
Retrieve a memory store.
public virtual System.ClientModel.ClientResult<Azure.AI.Projects.MemoryStore> GetMemoryStore(string name, System.Threading.CancellationToken cancellationToken = default);
abstract member GetMemoryStore : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.MemoryStore>
override this.GetMemoryStore : string * System.Threading.CancellationToken -> System.ClientModel.ClientResult<Azure.AI.Projects.MemoryStore>
Public Overridable Function GetMemoryStore (name As String, Optional cancellationToken As CancellationToken = Nothing) As ClientResult(Of MemoryStore)
Parameters
- name
- String
The name of the memory store to retrieve.
- 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.