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

基本数据点类

基本(非复杂)字段的 V1 导航器中的 BasicDataPoint 外观,提供强类型访问权限以读取、添加、插入、更新和删除其值。

定义

  • 命名空间: UiPath.DocumentProcessing.Contracts.Extensions.Navigator.V1
  • 程序集: UiPath.DocumentProcessing.Contracts
  • 继承:数据点外观基类

描述

BasicDataPoint 是提取结果中基本(非复杂)字段的外观。它包装ResultsDataPoint ,并提供流畅的强类型 API 来将字段的值读取和编辑为BasicValue对象。

如果包装的数据点为复杂类型(表或字段组),则构造函数会抛出 System.ArgumentExceptionBasicDataPoint通常从ComponentCollectionFacade上的ExtractionResultHandler.FromBasicDataPoint(...)GetSimpleField(...)获取。对于表格或字段组,请改用表格数据点字段组数据点

成员

构造函数

构造函数描述
BasicDataPoint(ResultsDataPoint dataPoint)为基本字段初始化新实例。如果字段为表格或字段组类型,则抛出 ArgumentException

属性

属性类型描述
Value基本值字段的第一个值,如果字段没有值,则为 null。只读。
Values基本值[]该字段的所有值。只读。

方法

方法返回描述
GetValue(int index = 0)基本值返回指定索引处的值。默认为第一个值。
AddValue(ResultsValue value)基本值将现有值附加到值列表的末尾。如果 ArgumentNullExceptionvalue,则引发 null
AddValue(string value, float confidence, float ocrConfidence = 0, ResultsContentReference reference = null, bool operatorConfirmed = false, ResultsDerivedField[] derivedFields = null)基本值从提供的属性中构建一个值,并将其附加到值列表中。
InsertValue(int index, ResultsValue value)基本值在指定索引处插入现有值。如果 ArgumentNullExceptionvalue,则引发 null
InsertValue(int index, string value, float confidence, float ocrConfidence = 0, ResultsContentReference reference = null, bool operatorConfirmed = false, ResultsDerivedField[] derivedFields = null)基本值从提供的属性构建一个值,并将其插入到指定的索引处。
UpdateValue(ResultsValue value)基本值使用提供的值更新第一个值。如果字段缺失,请添加值。
UpdateValue(int index, ResultsValue value)基本值更新指定索引处的值。如果字段缺失,请添加值。如果 ArgumentNullExceptionvalue,则引发 null
UpdateValue(int index = 0, string value = null, float? confidence = null, float? ocrConfidence = null, ResultsContentReference reference = null, bool? operatorConfirmed = null, ResultsDerivedField[] derivedFields = null)基本值仅更新指定索引处的值的已提供(非空)属性。如果该索引处不存在该值,则添加一个值。
Clear()BasicDataPoint从字段中删除所有值并返回此实例以进行链接。
Remove(int index)BasicDataPoint删除指定索引处的值,并返回此实例以用于链接。

已继承的成员

字段元数据和验证程序属性( FieldTypeFieldIdFieldNameIsMissingDataVersionDataSourceOperatorConfirmedValidatorNotesValidatorNotesInfo )和GetRawDataPoint()继承自DataPointFacadeBase

  • 定义
  • 描述
  • 成员
  • 构造函数
  • 属性
  • 方法
  • 已继承的成员

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新