UiPath Documentation
activities
latest
false
Document Understanding 活动
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。

BasicDataPoint Class

BasicDataPoint facade in the V1 navigator for a basic (non-complex) field, providing strongly-typed access to read, add, insert, update, and remove its values.

定义

  • 命名空间: UiPath.DocumentProcessing.Contracts.Extensions.Navigator.V1
  • 程序集: UiPath.DocumentProcessing.Contracts
  • Inherits: DataPointFacadeBase

描述

BasicDataPoint is a facade for a basic (non-complex) field in an extraction result. It wraps a ResultsDataPoint and provides a fluent, strongly-typed API to read and edit the field's values as BasicValue objects.

The constructor throws System.ArgumentException if the wrapped data point is a complex type (table or field group). A BasicDataPoint is typically obtained from ExtractionResultHandler.FromBasicDataPoint(...) or from GetSimpleField(...) on ComponentCollectionFacade. For tables or field groups, use TableDataPoint or FieldGroupDataPoint instead.

成员

构造函数

构造函数描述
BasicDataPoint(ResultsDataPoint dataPoint)Initializes a new instance for a basic field. Throws ArgumentException if the field is a table or field group type.

属性

属性类型描述
ValueBasicValueThe first value of the field, or null if the field has no values. Read-only.
ValuesBasicValue[]All values of the field. Read-only.

方法

方法返回描述
GetValue(int index = 0)BasicValueReturns the value at the specified index. Defaults to the first value.
AddValue(ResultsValue value)BasicValueAppends an existing value to the end of the values list. Throws ArgumentNullException if value is null.
AddValue(string value, float confidence, float ocrConfidence = 0, ResultsContentReference reference = null, bool operatorConfirmed = false, ResultsDerivedField[] derivedFields = null)BasicValueBuilds a value from the supplied properties and appends it to the values list.
InsertValue(int index, ResultsValue value)BasicValueInserts an existing value at the specified index. Throws ArgumentNullException if value is null.
InsertValue(int index, string value, float confidence, float ocrConfidence = 0, ResultsContentReference reference = null, bool operatorConfirmed = false, ResultsDerivedField[] derivedFields = null)BasicValueBuilds a value from the supplied properties and inserts it at the specified index.
UpdateValue(ResultsValue value)BasicValueUpdates the first value with the supplied value. Adds the value if the field is missing.
UpdateValue(int index, ResultsValue value)BasicValueUpdates the value at the specified index. Adds the value if the field is missing. Throws ArgumentNullException if value is null.
UpdateValue(int index = 0, string value = null, float? confidence = null, float? ocrConfidence = null, ResultsContentReference reference = null, bool? operatorConfirmed = null, ResultsDerivedField[] derivedFields = null)BasicValueUpdates only the supplied (non-null) properties of the value at the specified index. Adds a value if none exists at that index.
Clear()BasicDataPointRemoves all values from the field and returns this instance for chaining.
Remove(int index)BasicDataPointRemoves the value at the specified index and returns this instance for chaining.

Inherited members

Field metadata and validator properties (FieldType, FieldId, FieldName, IsMissing, DataVersion, DataSource, OperatorConfirmed, ValidatorNotes, ValidatorNotesInfo) and GetRawDataPoint() are inherited from DataPointFacadeBase.

  • 定义
  • 描述
  • 成员
  • 构造函数
  • 属性
  • 方法
  • Inherited members

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新