DocumentTranslationClient.GetSupportedFormats 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
GetSupportedFormats(Nullable<FileFormatType>, CancellationToken) |
Returns a list of supported document formats. |
GetSupportedFormats(String, RequestContext) |
[Protocol Method] Returns a list of supported document formats
|
GetSupportedFormats(Nullable<FileFormatType>, CancellationToken)
- Source:
- DocumentTranslationClient.cs
- 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
GetSupportedFormats(String, RequestContext)
- Source:
- DocumentTranslationClient.cs
- Source:
- DocumentTranslationClient.cs
[Protocol Method] Returns a list of supported document formats
- This protocol method allows explicit creation of the request and processing of the response for advanced scenarios.
- Please try the simpler GetSupportedFormats(Nullable<FileFormatType>, CancellationToken) convenience overload with strongly typed models first.
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
Azure SDK for .NET