你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
DocumentIntelligenceClient.GetAnalyzeResultFigureAsync 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
GetAnalyzeResultFigureAsync(String, Guid, String, RequestContext) |
[Protocol Method] Gets the generated cropped image of specified figure from document analysis.
|
GetAnalyzeResultFigureAsync(String, Guid, String, CancellationToken) |
Gets the generated cropped image of specified figure from document analysis. |
GetAnalyzeResultFigureAsync(String, String, String, RequestContext) |
[Protocol Method] Gets the generated cropped image of specified figure from document analysis.
|
GetAnalyzeResultFigureAsync(String, String, String, CancellationToken) |
Gets the generated cropped image of specified figure from document analysis. |
GetAnalyzeResultFigureAsync(String, Guid, String, RequestContext)
[Protocol Method] Gets the generated cropped image of specified figure from document analysis.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetAnalyzeResultFigureAsync(String, Guid, String, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> GetAnalyzeResultFigureAsync (string modelId, Guid resultId, string figureId, Azure.RequestContext context);
abstract member GetAnalyzeResultFigureAsync : string * Guid * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetAnalyzeResultFigureAsync : string * Guid * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetAnalyzeResultFigureAsync (modelId As String, resultId As Guid, figureId As String, context As RequestContext) As Task(Of Response)
Parameters
- modelId
- String
Unique document model name.
- resultId
- Guid
Analyze operation result ID.
- figureId
- String
Figure ID.
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
modelId
or figureId
is null.
modelId
or figureId
is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Examples
This sample shows how to call GetAnalyzeResultFigureAsync and parse the result.
Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
Response response = await client.GetAnalyzeResultFigureAsync("<modelId>", Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), "<figureId>", null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());
This sample shows how to call GetAnalyzeResultFigureAsync with all parameters and parse the result.
Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
Response response = await client.GetAnalyzeResultFigureAsync("<modelId>", Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), "<figureId>", null);
JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.ToString());
Applies to
GetAnalyzeResultFigureAsync(String, Guid, String, CancellationToken)
Gets the generated cropped image of specified figure from document analysis.
public virtual System.Threading.Tasks.Task<Azure.Response<BinaryData>> GetAnalyzeResultFigureAsync (string modelId, Guid resultId, string figureId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAnalyzeResultFigureAsync : string * Guid * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
override this.GetAnalyzeResultFigureAsync : string * Guid * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
Public Overridable Function GetAnalyzeResultFigureAsync (modelId As String, resultId As Guid, figureId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BinaryData))
Parameters
- modelId
- String
Unique document model name.
- resultId
- Guid
Analyze operation result ID.
- figureId
- String
Figure ID.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
modelId
or figureId
is null.
modelId
or figureId
is an empty string, and was expected to be non-empty.
Examples
This sample shows how to call GetAnalyzeResultFigureAsync.
Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
Response<BinaryData> response = await client.GetAnalyzeResultFigureAsync("<modelId>", Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), "<figureId>");
This sample shows how to call GetAnalyzeResultFigureAsync with all parameters.
Uri endpoint = new Uri("<https://my-service.azure.com>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
DocumentIntelligenceClient client = new DocumentIntelligenceClient(endpoint, credential);
Response<BinaryData> response = await client.GetAnalyzeResultFigureAsync("<modelId>", Guid.Parse("73f411fe-4f43-4b4b-9cbd-6828d8f4cf9a"), "<figureId>");
Applies to
GetAnalyzeResultFigureAsync(String, String, String, RequestContext)
[Protocol Method] Gets the generated cropped image of specified figure from document analysis.
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetAnalyzeResultFigureAsync(String, String, String, CancellationToken) convenience overload with strongly typed models first.
public virtual System.Threading.Tasks.Task<Azure.Response> GetAnalyzeResultFigureAsync (string modelId, string resultId, string figureId, Azure.RequestContext context);
abstract member GetAnalyzeResultFigureAsync : string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
override this.GetAnalyzeResultFigureAsync : string * string * string * Azure.RequestContext -> System.Threading.Tasks.Task<Azure.Response>
Public Overridable Function GetAnalyzeResultFigureAsync (modelId As String, resultId As String, figureId As String, context As RequestContext) As Task(Of Response)
Parameters
- modelId
- String
Unique document model name.
- resultId
- String
Analyze operation result ID.
- figureId
- String
Figure ID.
- context
- RequestContext
The request context, which can override default behaviors of the client pipeline on a per-call basis.
Returns
The response returned from the service.
Exceptions
modelId
or figureId
is null.
modelId
or figureId
is an empty string, and was expected to be non-empty.
Service returned a non-success status code.
Applies to
GetAnalyzeResultFigureAsync(String, String, String, CancellationToken)
Gets the generated cropped image of specified figure from document analysis.
public virtual System.Threading.Tasks.Task<Azure.Response<BinaryData>> GetAnalyzeResultFigureAsync (string modelId, string resultId, string figureId, System.Threading.CancellationToken cancellationToken = default);
abstract member GetAnalyzeResultFigureAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
override this.GetAnalyzeResultFigureAsync : string * string * string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Azure.Response<BinaryData>>
Public Overridable Function GetAnalyzeResultFigureAsync (modelId As String, resultId As String, figureId As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of Response(Of BinaryData))
Parameters
- modelId
- String
Unique document model name.
- resultId
- String
Analyze operation result ID.
- figureId
- String
Figure ID.
- cancellationToken
- CancellationToken
The cancellation token to use.
Returns
Exceptions
modelId
or figureId
is null.
modelId
or figureId
is an empty string, and was expected to be non-empty.