ContentUnderstandingClient.CopyAnalyzerAsync 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 |
|---|---|
| CopyAnalyzerAsync(WaitUntil, String, RequestContent, Nullable<Boolean>, RequestContext) |
Create a copy of the source analyzer to the current location. |
| CopyAnalyzerAsync(WaitUntil, String, String, String, String, Nullable<Boolean>, CancellationToken) |
Create a copy of the source analyzer to the current location. |
CopyAnalyzerAsync(WaitUntil, String, RequestContent, Nullable<Boolean>, RequestContext)
Create a copy of the source analyzer to the current location.
public virtual System.Threading.Tasks.Task<Azure.Operation<BinaryData>> CopyAnalyzerAsync(Azure.WaitUntil waitUntil, string analyzerId, Azure.Core.RequestContent content, bool? allowReplace = default, Azure.RequestContext context = default);
abstract member CopyAnalyzerAsync : Azure.WaitUntil * string * Azure.Core.RequestContent * Nullable<bool> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
override this.CopyAnalyzerAsync : Azure.WaitUntil * string * Azure.Core.RequestContent * Nullable<bool> * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Operation<BinaryData>>
Public Overridable Function CopyAnalyzerAsync (waitUntil As WaitUntil, analyzerId As String, content As RequestContent, Optional allowReplace As Nullable(Of Boolean) = Nothing, Optional context As RequestContext = Nothing) As Task(Of Operation(Of BinaryData))
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- analyzerId
- String
The unique identifier of the analyzer.
- 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 response returned from the service.
Exceptions
analyzerId or content is null.
analyzerId is an empty string, and was expected to be non-empty.
Applies to
CopyAnalyzerAsync(WaitUntil, String, String, String, String, Nullable<Boolean>, CancellationToken)
Create a copy of the source analyzer to the current location.
public virtual System.Threading.Tasks.Task<Azure.Operation<Azure.AI.ContentUnderstanding.ContentAnalyzer>> CopyAnalyzerAsync(Azure.WaitUntil waitUntil, string analyzerId, string sourceAnalyzerId, string sourceAzureResourceId = default, string sourceRegion = default, bool? allowReplace = default, System.Threading.CancellationToken cancellationToken = default);
abstract member CopyAnalyzerAsync : Azure.WaitUntil * string * string * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation<Azure.AI.ContentUnderstanding.ContentAnalyzer>>
override this.CopyAnalyzerAsync : Azure.WaitUntil * string * string * string * string * Nullable<bool> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Operation<Azure.AI.ContentUnderstanding.ContentAnalyzer>>
Public Overridable Function CopyAnalyzerAsync (waitUntil As WaitUntil, analyzerId As String, sourceAnalyzerId As String, Optional sourceAzureResourceId As String = Nothing, Optional sourceRegion As String = Nothing, Optional allowReplace As Nullable(Of Boolean) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Operation(Of ContentAnalyzer))
Parameters
- waitUntil
- WaitUntil
Completed if the method should wait to return until the long-running operation has completed on the service; Started if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
- analyzerId
- String
The unique identifier of the analyzer.
- sourceAnalyzerId
- String
Source analyzer ID.
- sourceAzureResourceId
- String
Azure resource ID of the source analyzer location. Defaults to the current resource.
- sourceRegion
- String
Azure region of the source analyzer location. Defaults to current region.
- cancellationToken
- CancellationToken
The cancellation token that can be used to cancel the operation.
Returns
Exceptions
analyzerId or sourceAnalyzerId is null.
analyzerId or sourceAnalyzerId is an empty string, and was expected to be non-empty.