AnalyzeDocumentOptions Constructors
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 |
|---|---|
| AnalyzeDocumentOptions(String, BinaryData) |
Initializes a new instance of AnalyzeDocumentOptions. |
| AnalyzeDocumentOptions(String, Uri) |
Initializes a new instance of AnalyzeDocumentOptions. |
AnalyzeDocumentOptions(String, BinaryData)
- Source:
- AnalyzeDocumentOptions.cs
Initializes a new instance of AnalyzeDocumentOptions.
public AnalyzeDocumentOptions(string modelId, BinaryData bytesSource);
new Azure.AI.DocumentIntelligence.AnalyzeDocumentOptions : string * BinaryData -> Azure.AI.DocumentIntelligence.AnalyzeDocumentOptions
Public Sub New (modelId As String, bytesSource As BinaryData)
Parameters
- modelId
- String
Unique document model name.
- bytesSource
- BinaryData
Bytes of the document to analyze.
To assign a byte[] to this property use FromBytes(Byte[]). The byte[] will be serialized to a Base64 encoded string.
Examples:
- BinaryData.FromBytes(new byte[] { 1, 2, 3 }): Creates a payload of "AQID".
Exceptions
modelId or bytesSource is null.
modelId is an empty string, and was expected to be non-empty.
Applies to
AnalyzeDocumentOptions(String, Uri)
- Source:
- AnalyzeDocumentOptions.cs
Initializes a new instance of AnalyzeDocumentOptions.
public AnalyzeDocumentOptions(string modelId, Uri uriSource);
new Azure.AI.DocumentIntelligence.AnalyzeDocumentOptions : string * Uri -> Azure.AI.DocumentIntelligence.AnalyzeDocumentOptions
Public Sub New (modelId As String, uriSource As Uri)
Parameters
- modelId
- String
Unique document model name.
- uriSource
- Uri
Document URL to analyze.
Exceptions
modelId or uriSource is null.
modelId is an empty string, and was expected to be non-empty.