KnowledgeBases.CreateOrUpdateAsync 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.
Creates or updates a KnowledgeBase, polling provisioningState to completion.
public virtual System.Threading.Tasks.Task<Azure.Operation<BinaryData>> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string knowledgeBaseName, Azure.Core.RequestContent content, Azure.RequestContext context = default);
abstract member CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
override this.CreateOrUpdateAsync : Azure.WaitUntil * string * Azure.Core.RequestContent * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
Public Overridable Function CreateOrUpdateAsync (waitUntil As WaitUntil, knowledgeBaseName As String, content As RequestContent, Optional context As RequestContext = Nothing) As Task(Of Operation(Of BinaryData))
Parameters
- waitUntil
- WaitUntil
Completed to wait for the long-running operation to finish provisioning; Started to return immediately.
- knowledgeBaseName
- String
The knowledgeBase name.
- content
- RequestContent
The content to send as the body of the request.
- context
- RequestContext
The request options, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The long-running operation for the create or update request.
Exceptions
knowledgeBaseName or content is null.
knowledgeBaseName is an empty string, and was expected to be non-empty.