KnowledgeBases.Get Method

Definition

Overloads

Name Description
Get(String, RequestContext)

[Protocol Method] Fetch a KnowledgeBase by name.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
Get(String, CancellationToken)

Fetch a KnowledgeBase by name.

Get(String, RequestContext)

Source:
KnowledgeBases.cs

[Protocol Method] Fetch a KnowledgeBase by name.

  • This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
public virtual Azure.Response Get(string knowledgeBaseName, Azure.RequestContext context);
abstract member Get : string * Azure.RequestContext -> Azure.Response
override this.Get : string * Azure.RequestContext -> Azure.Response
Public Overridable Function Get (knowledgeBaseName As String, context As RequestContext) As Response

Parameters

knowledgeBaseName
String

The knowledgeBase name.

context
RequestContext

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

knowledgeBaseName is null.

knowledgeBaseName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to

Get(String, CancellationToken)

Source:
KnowledgeBases.cs

Fetch a KnowledgeBase by name.

public virtual Azure.Response<Azure.AI.Discovery.KnowledgeBase> Get(string knowledgeBaseName, System.Threading.CancellationToken cancellationToken = default);
abstract member Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.KnowledgeBase>
override this.Get : string * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Discovery.KnowledgeBase>
Public Overridable Function Get (knowledgeBaseName As String, Optional cancellationToken As CancellationToken = Nothing) As Response(Of KnowledgeBase)

Parameters

knowledgeBaseName
String

The knowledgeBase name.

cancellationToken
CancellationToken

The cancellation token that can be used to cancel the operation.

Returns

Exceptions

knowledgeBaseName is null.

knowledgeBaseName is an empty string, and was expected to be non-empty.

Service returned a non-success status code.

Applies to