Share via


DocumentTranslationClient.GetSupportedFormats Method

Definition

Overloads

GetSupportedFormats(String, RequestContext)

[Protocol Method] Returns a list of supported document formats

GetSupportedFormats(Nullable<FileFormatType>, CancellationToken)

Returns a list of supported document formats.

GetSupportedFormats(String, RequestContext)

Source:
DocumentTranslationClient.cs

[Protocol Method] Returns a list of supported document formats

public virtual Azure.Response GetSupportedFormats (string type, Azure.RequestContext context);
abstract member GetSupportedFormats : string * Azure.RequestContext -> Azure.Response
override this.GetSupportedFormats : string * Azure.RequestContext -> Azure.Response
Public Overridable Function GetSupportedFormats (type As String, context As RequestContext) As Response

Parameters

type
String

the type of format like document or glossary . Allowed values: "document" | "glossary".

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.

Applies to

GetSupportedFormats(Nullable<FileFormatType>, CancellationToken)

Source:
DocumentTranslationClient.cs

Returns a list of supported document formats.

public virtual Azure.Response<Azure.AI.Translation.Document.SupportedFileFormats> GetSupportedFormats (Azure.AI.Translation.Document.FileFormatType? type = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetSupportedFormats : Nullable<Azure.AI.Translation.Document.FileFormatType> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.SupportedFileFormats>
override this.GetSupportedFormats : Nullable<Azure.AI.Translation.Document.FileFormatType> * System.Threading.CancellationToken -> Azure.Response<Azure.AI.Translation.Document.SupportedFileFormats>
Public Overridable Function GetSupportedFormats (Optional type As Nullable(Of FileFormatType) = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Response(Of SupportedFileFormats)

Parameters

type
Nullable<FileFormatType>

the type of format like document or glossary.

cancellationToken
CancellationToken

The cancellation token to use.

Returns

Remarks

The list of supported formats supported by the Document Translation service. The list includes the common file extension, as well as the content-type if using the upload API.

Applies to