ContentUnderstandingModelFactory.ContentField 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.
Field extracted from the content. Please note this is the abstract base class. The derived classes available for instantiation are: ContentStringField, ContentDateTimeOffsetField, ContentTimeField, ContentNumberField, ContentIntegerField, ContentBooleanField, ContentArrayField, ContentObjectField, and ContentJsonField.
public static Azure.AI.ContentUnderstanding.ContentField ContentField(string type = default, System.Collections.Generic.IEnumerable<Azure.AI.ContentUnderstanding.ContentSpan> spans = default, float? confidence = default, string sourceValue = default);
public static Azure.AI.ContentUnderstanding.ContentField ContentField(string type = default, System.Collections.Generic.IEnumerable<Azure.AI.ContentUnderstanding.ContentSpan> spans = default, float? confidence = default, string source = default);
static member ContentField : string * seq<Azure.AI.ContentUnderstanding.ContentSpan> * Nullable<single> * string -> Azure.AI.ContentUnderstanding.ContentField
static member ContentField : string * seq<Azure.AI.ContentUnderstanding.ContentSpan> * Nullable<single> * string -> Azure.AI.ContentUnderstanding.ContentField
Public Shared Function ContentField (Optional type As String = Nothing, Optional spans As IEnumerable(Of ContentSpan) = Nothing, Optional confidence As Nullable(Of Single) = Nothing, Optional sourceValue As String = Nothing) As ContentField
Public Shared Function ContentField (Optional type As String = Nothing, Optional spans As IEnumerable(Of ContentSpan) = Nothing, Optional confidence As Nullable(Of Single) = Nothing, Optional source As String = Nothing) As ContentField
Parameters
- type
- String
Semantic data type of the field value.
- spans
- IEnumerable<ContentSpan>
Span(s) associated with the field value in the markdown content.
- sourceValuesource
- String
Encoded source that identifies the position of the field value in the content.
Returns
A new ContentField instance for mocking.