你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
ClassifyDocumentOptions 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
ClassifyDocumentOptions(String, BinaryData) |
Initializes a new instance of ClassifyDocumentOptions. |
ClassifyDocumentOptions(String, Uri) |
Initializes a new instance of ClassifyDocumentOptions. |
ClassifyDocumentOptions(String, BinaryData)
- Source:
- ClassifyDocumentOptions.cs
Initializes a new instance of ClassifyDocumentOptions.
public ClassifyDocumentOptions (string classifierId, BinaryData bytesSource);
new Azure.AI.DocumentIntelligence.ClassifyDocumentOptions : string * BinaryData -> Azure.AI.DocumentIntelligence.ClassifyDocumentOptions
Public Sub New (classifierId As String, bytesSource As BinaryData)
Parameters
- classifierId
- String
Unique document classifier 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
classifierId
or bytesSource
is null.
classifierId
is an empty string, and was expected to be non-empty.
Applies to
ClassifyDocumentOptions(String, Uri)
- Source:
- ClassifyDocumentOptions.cs
Initializes a new instance of ClassifyDocumentOptions.
public ClassifyDocumentOptions (string classifierId, Uri uriSource);
new Azure.AI.DocumentIntelligence.ClassifyDocumentOptions : string * Uri -> Azure.AI.DocumentIntelligence.ClassifyDocumentOptions
Public Sub New (classifierId As String, uriSource As Uri)
Parameters
- classifierId
- String
Unique document classifier name.
- uriSource
- Uri
Document URL to analyze.
Exceptions
classifierId
or uriSource
is null.
classifierId
is an empty string, and was expected to be non-empty.