Condividi tramite


DocumentIntelligenceAdministrationClient.GetResourceDetails Method

Definition

Overloads

GetResourceDetails(RequestContext)

[Protocol Method] Return information about the current resource.

GetResourceDetails(CancellationToken)

Return information about the current resource.

GetResourceDetails(RequestContext)

Source:
DocumentIntelligenceAdministrationClient.cs

[Protocol Method] Return information about the current resource.

public virtual Azure.Response GetResourceDetails (Azure.RequestContext context);
abstract member GetResourceDetails : Azure.RequestContext -> Azure.Response
override this.GetResourceDetails : Azure.RequestContext -> Azure.Response
Public Overridable Function GetResourceDetails (context As RequestContext) As Response

Parameters

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

Service returned a non-success status code.

Examples

This sample shows how to call GetResourceDetails and parse the result.

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
DocumentIntelligenceAdministrationClient client = new DocumentIntelligenceAdministrationClient(endpoint, credential);

Response response = client.GetResourceDetails(null);

JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
Console.WriteLine(result.GetProperty("customDocumentModels").GetProperty("count").ToString());
Console.WriteLine(result.GetProperty("customDocumentModels").GetProperty("limit").ToString());

Applies to

GetResourceDetails(CancellationToken)

Source:
DocumentIntelligenceAdministrationClient.cs

Return information about the current resource.

public virtual Azure.Response<Azure.AI.DocumentIntelligence.DocumentIntelligenceResourceDetails> GetResourceDetails (System.Threading.CancellationToken cancellationToken = default);
abstract member GetResourceDetails : System.Threading.CancellationToken -> Azure.Response<Azure.AI.DocumentIntelligence.DocumentIntelligenceResourceDetails>
override this.GetResourceDetails : System.Threading.CancellationToken -> Azure.Response<Azure.AI.DocumentIntelligence.DocumentIntelligenceResourceDetails>
Public Overridable Function GetResourceDetails (Optional cancellationToken As CancellationToken = Nothing) As Response(Of DocumentIntelligenceResourceDetails)

Parameters

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Examples

This sample shows how to call GetResourceDetails.

Uri endpoint = new Uri("<endpoint>");
AzureKeyCredential credential = new AzureKeyCredential("<key>");
DocumentIntelligenceAdministrationClient client = new DocumentIntelligenceAdministrationClient(endpoint, credential);

Response<DocumentIntelligenceResourceDetails> response = client.GetResourceDetails();

Applies to