UiPath Documentation
activities
latest
false
重要 :
请注意,此内容已使用机器翻译进行了部分本地化。 新发布内容的本地化可能需要 1-2 周的时间才能完成。
UiPath logo, featuring letters U and I in white

用户界面自动化活动

上次更新日期 2026年4月20日

提取数据

将数据提取为数据表。

必须在“打开”“附加”之后添加此 API。

定义

命名空间:UiPath.UIAutomationNext.API.Models

程序集:UiPath.UIAutomationNext.API.Models(位于 UiPath.UIAutomationNext.API.Models dll 中)

重载

重载描述
ExtractData(ExtractDataOptionsModel)将数据提取为数据表,并由ExtractDataOptionsModel对象标识。
ExtractData(TargetAnchorableModel, ExtractDataOptions)将数据提取为数据表,并由TargetAnchorableModel对象及其他配置标识。
ExtractData(String, ExtractDataOptions)将数据提取为数据表,并由对象存储库中的字符串以及其他配置标识。
ExtractData(IElementDescriptor, ExtractDataOptions)将数据提取为数据表,由对象存储库中元素的描述符以及其他配置标识。
ExtractData(TargetAnchorableModel, String, String, NchildInteractionMode, LimitType, Int32)将数据提取为由“ TargetAnchorableModel ”对象标识的数据表,同时指定 XML 字符串 (定义要提取的数据)、表格设置、交互类型、限制类型以及要提取的最大结果数。
ExtractData(IElementDescriptor, String, String, NchildInteractionMode, LimitType, Int32)将数据提取为数据表,并由对象存储库中元素的描述符标识,同时指定 XML 字符串 (定义要提取的数据)、表格设置、交互类型、限制类型和最大结果数量待提取。
ExtractData(String, String, String, NchildInteractionMode, LimitType, Int32)将数据提取为数据表,并由对象存储库中的字符串标识,同时指定 XML 字符串 (定义要提取的数据)、表格设置、交互类型、限制类型以及要提取的最大结果数。
ExtractData(TargetAnchorableModel, TargetAnchorableModel, String, String, Double, NchildInteractionMode, LimitType, Int32)将由TargetAnchorableModel对象标识的数据提取为数据表,同时指定下一页的目标、定义要提取数据的 XML 字符串、表格设置、下一页加载前的等待时间、类型交互的类型、限制类型以及要提取的最大结果数。
ExtractData(IElementDescriptor, String, String, String, Double, NchildInteractionMode, LimitType, Int32)将数据提取为数据表,并由对象存储库中元素的描述符标识,同时指定下一页的目标、定义要提取数据的 XML 字符串、表格设置、下一页加载前的等待时间、交互类型、限制类型以及要提取的最大结果数。
ExtractData(String, String, String, String, Double, NchildInteractionMode, LimitType, Int32)将数据提取为数据表,并由对象存储库中的字符串标识,同时指定下一页的目标、定义要提取数据的 XML 字符串、表格设置、等待下一页加载的时间、类型交互的类型、限制类型以及要提取的最大结果数。

ExtractData(ExtractDataOptionsModel)

将数据提取为数据表,并由ExtractDataOptionsModel对象标识。

ExtractData(
    ExtractDataOptionsModel options)
ExtractData(
    ExtractDataOptionsModel options)

options ExtractDataOptionsModel :要从中获取数据的目标,由ExtractDataOptionsModel对象标识。

ExtractData(TargetAnchorableModel, ExtractDataOptions)

将数据提取为数据表,并由TargetAnchorableModel对象及其他配置标识。

ExtractData(
    TargetAnchorableModel target,
    ExtractDataOptions extractDataOptions)
ExtractData(
    TargetAnchorableModel target,
    ExtractDataOptions extractDataOptions)

target TargetAnchorableModel :要从中获取数据的目标,由TargetAnchorableModel对象标识。

extractDataOptions ExtractDataOptions :用于自定义数据提取的其他选项。您可以选择自定义以下项目:

* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in seconds)
    to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after executing
    the API. The default amount of time is 0.3 seconds (300
    milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the API
    begins performing any operations. The default amount of time
    is 0.2 seconds (200 milliseconds).
* `ExtractMetadata` - An XML string that enables you to
  define what data to extract from the target.
* `TableSettings` - The table settings used when
  extracting data.
* `NChildInteractionMode` - The type of the interaction
  to use performing the actions.
* `LimitType` - Specifies the type of limit that
  you want to use when extracting data.
* `NumberOfItems` - The maximum number of results to be
  extracted. If the value is 0, all the identified elements are added
  to the output.
* `NextPageOptions` - The target on the next page
  to get data from and the delay between pages.
* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in seconds)
    to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after executing
    the API. The default amount of time is 0.3 seconds (300
    milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the API
    begins performing any operations. The default amount of time
    is 0.2 seconds (200 milliseconds).
* `ExtractMetadata` - An XML string that enables you to
  define what data to extract from the target.
* `TableSettings` - The table settings used when
  extracting data.
* `NChildInteractionMode` - The type of the interaction
  to use performing the actions.
* `LimitType` - Specifies the type of limit that
  you want to use when extracting data.
* `NumberOfItems` - The maximum number of results to be
  extracted. If the value is 0, all the identified elements are added
  to the output.
* `NextPageOptions` - The target on the next page
  to get data from and the delay between pages.

ExtractData(String, ExtractDataOptions)

将数据提取为数据表,并由对象存储库中的字符串以及其他配置标识。

ExtractData(
    string target,
    ExtractDataOptions extractDataOptions)
ExtractData(
    string target,
    ExtractDataOptions extractDataOptions)

target String :要从中获取数据的目标,由对象存储库中的字符串标识。

extractDataOptions ExtractDataOptions :用于自定义数据提取的其他选项。您可以选择自定义以下项目:

* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in seconds)
    to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after executing
    the API. The default amount of time is 0.3 seconds (300
    milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the API
    begins performing any operations. The default amount of time
    is 0.2 seconds (200 milliseconds).
* `ExtractMetadata` - An XML string that enables you to
  define what data to extract from the target.
* `TableSettings` - The table settings used when
  extracting data.
* `NChildInteractionMode` - The type of the interaction
  to use performing the actions.
* `LimitType` - Specifies the type of limit that
  you want to use when extracting data.
* `NumberOfItems` - The maximum number of results to be
  extracted. If the value is 0, all the identified elements are added
  to the output.
* `NextPageOptions` - The target on the next page to get
  data from and the delay between pages.
* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in seconds)
    to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after executing
    the API. The default amount of time is 0.3 seconds (300
    milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the API
    begins performing any operations. The default amount of time
    is 0.2 seconds (200 milliseconds).
* `ExtractMetadata` - An XML string that enables you to
  define what data to extract from the target.
* `TableSettings` - The table settings used when
  extracting data.
* `NChildInteractionMode` - The type of the interaction
  to use performing the actions.
* `LimitType` - Specifies the type of limit that
  you want to use when extracting data.
* `NumberOfItems` - The maximum number of results to be
  extracted. If the value is 0, all the identified elements are added
  to the output.
* `NextPageOptions` - The target on the next page to get
  data from and the delay between pages.

ExtractData(IElementDescriptor, ExtractDataOptions)

将数据提取为数据表,由对象存储库中元素的描述符以及其他配置标识。

ExtractData(
    IElementDescriptor elementDescriptor,
    ExtractDataOptions extractDataOptions)
ExtractData(
    IElementDescriptor elementDescriptor,
    ExtractDataOptions extractDataOptions)

elementDescriptor IElementDescriptor :要从中获取数据的目标,由对象存储库中元素的描述符标识。

extractDataOptions ExtractDataOptions :用于自定义数据提取的其他选项。您可以选择自定义以下项目:

* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in seconds)
    to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after executing
    the API. The default amount of time is 0.3 seconds (300
    milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the API
    begins performing any operations. The default amount of time
    is 0.2 seconds (200 milliseconds).
* `ExtractMetadata` - An XML string that enables you to
  define what data to extract from the target.
* `TableSettings` - The table settings used when
  extracting data.
* `NChildInteractionMode` - The type of the interaction
  to use performing the actions.
* `LimitType` - Specifies the type of limit that
  you want to use when extracting data.
* `NumberOfItems` - The maximum number of results to be
  extracted. If the value is 0, all the identified elements are added
  to the output.
* `NextPageOptions` - The target on the next page to get
  data from and the delay between pages.
* `TargetOptions`:
  + **Timeout** - Specifies the amount of time (in seconds)
    to wait for the API to run before the
    `SelectorNotFoundException` error is
    thrown. The default value is 30 seconds.
  + **DelayAfter** - Delay time (in seconds) after executing
    the API. The default amount of time is 0.3 seconds (300
    milliseconds).
  + **DelayBefore** - Delay time (in seconds) before the API
    begins performing any operations. The default amount of time
    is 0.2 seconds (200 milliseconds).
* `ExtractMetadata` - An XML string that enables you to
  define what data to extract from the target.
* `TableSettings` - The table settings used when
  extracting data.
* `NChildInteractionMode` - The type of the interaction
  to use performing the actions.
* `LimitType` - Specifies the type of limit that
  you want to use when extracting data.
* `NumberOfItems` - The maximum number of results to be
  extracted. If the value is 0, all the identified elements are added
  to the output.
* `NextPageOptions` - The target on the next page to get
  data from and the delay between pages.

ExtractData(TargetAnchorableModel, String, String, NchildInteractionMode, LimitType, Int32)

将数据提取为由“ TargetAnchorableModel ”对象标识的数据表,同时指定 XML 字符串 (定义要提取的数据)、表格设置、交互类型、限制类型以及要提取的最大结果数。

ExtractData(
    TargetAnchorableModel target,
    string extractMetadata,
    [string tableSettings],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])
ExtractData(
    TargetAnchorableModel target,
    string extractMetadata,
    [string tableSettings],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])

target TargetAnchorableModel :要从中获取数据的目标,由TargetAnchorableModel对象标识。

extractMetadata String :一个 XML 字符串,用于定义从目标中提取的数据。

tableSettings String :提取数据时使用的表格设置。

interactionMode NChildInteractionMode :执行操作时使用的交互类型(例如交互或交互)。

limitExtractionTo LimitType :指定提取数据时要使用的限制类型。

numberOfItems Int32 :要提取的结果的最大数量。如果值为 0,则将所有已确定的元素添加到输出中。

ExtractData(String, String, String, NchildInteractionMode, LimitType, Int32)

将数据提取为数据表,并由对象存储库中元素的描述符标识,同时指定 XML 字符串 (定义要提取的数据)、表格设置、交互类型、限制类型和最大结果数量待提取。

ExtractData(
    IElementDescriptor elementDescriptor,
    string extractMetadata,
    [string tableSettings],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])
ExtractData(
    IElementDescriptor elementDescriptor,
    string extractMetadata,
    [string tableSettings],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])

elementDescriptor IElementDescriptor :要从中获取数据的目标,由对象存储库中元素的描述符标识。

extractMetadata String :一个 XML 字符串,用于定义从目标中提取的数据。

tableSettings String :提取数据时使用的表格设置。

interactionMode NChildInteractionMode :执行操作时使用的交互类型(例如交互或交互)。

limitExtractionTo LimitType :指定提取数据时要使用的限制类型。

numberOfItems Int32 :要提取的结果的最大数量。如果值为 0,则将所有已确定的元素添加到输出中。

ExtractData(String, String, String, NchildInteractionMode, LimitType, Int32)

将数据提取为数据表,并由对象存储库中的字符串标识,同时指定 XML 字符串 (定义要提取的数据)、表格设置、交互类型、限制类型以及要提取的最大结果数。

ExtractData(
    string target,
    string extractMetadata,
    [string tableSettings],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])
ExtractData(
    string target,
    string extractMetadata,
    [string tableSettings],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])

target String :要从中获取数据的目标,由对象存储库中的字符串标识。

extractMetadata String :一个 XML 字符串,用于定义从目标中提取的数据。

tableSettings String :提取数据时使用的表格设置。

interactionMode NChildInteractionMode :执行操作时使用的交互类型(例如交互或交互)。

limitExtractionTo LimitType :指定提取数据时要使用的限制类型。

numberOfItems Int32 :要提取的结果的最大数量。如果值为 0,则将所有已确定的元素添加到输出中。

ExtractData(TargetAnchorableModel, TargetAnchorableModel, String, String, Double, NchildInteractionMode, LimitType, Int32)

将由TargetAnchorableModel对象标识的数据提取为数据表,同时指定下一页的目标、定义要提取数据的 XML 字符串、表格设置、下一页加载前的等待时间、类型交互的类型、限制类型以及要提取的最大结果数。

ExtractData(
    TargetAnchorableModel target,
    TargetAnchorableModel nextPageTarget,
    string extractMetadata,
    [string tableSettings],
    [double delayBetweenPages],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])
ExtractData(
    TargetAnchorableModel target,
    TargetAnchorableModel nextPageTarget,
    string extractMetadata,
    [string tableSettings],
    [double delayBetweenPages],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])

target TargetAnchorableModel :要从中获取数据的目标,由TargetAnchorableModel对象标识。

nextPageTarget TargetAnchorableModel :要从中获取数据的下一页中的目标,由TargetAnchorableModel对象标识。

extractMetadata String :一个 XML 字符串,用于定义从目标中提取的数据。

tableSettings String :提取数据时使用的表格设置。

delayBetweenPages Double :加载下一页的等待时间(以秒为单位)。

interactionMode NChildInteractionMode :执行操作时使用的交互类型(例如交互或交互)。

limitExtractionTo LimitType :指定提取数据时要使用的限制类型。

numberOfItems Int32 :要提取的结果的最大数量。如果值为 0,则将所有已确定的元素添加到输出中。

ExtractData(IElementDescriptor, String, String, String, Double, NchildInteractionMode, LimitType, Int32)

将数据提取为数据表,并由对象存储库中元素的描述符标识,同时指定下一页的目标、定义要提取数据的 XML 字符串、表格设置、下一页加载前的等待时间、交互类型、限制类型以及要提取的最大结果数。

ExtractData(
    IElementDescriptor elementDescriptor,
    string nextPageTarget,
    string extractMetadata,
    [string tableSettings],
    [double delayBetweenPages],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])
ExtractData(
    IElementDescriptor elementDescriptor,
    string nextPageTarget,
    string extractMetadata,
    [string tableSettings],
    [double delayBetweenPages],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])

elementDescriptor IElementDescriptor :要从中获取数据的目标,由对象存储库中元素的描述符标识。

nextPageTarget String :下一页中要从中获取数据的目标,由对象存储库中的字符串标识。

extractMetadata String :一个 XML 字符串,用于定义从目标中提取的数据。

tableSettings String :提取数据时使用的表格设置。

delayBetweenPages Double :加载下一页的等待时间(以秒为单位)。

interactionMode NChildInteractionMode :执行操作时使用的交互类型(例如交互或交互)。

limitExtractionTo LimitType :指定提取数据时要使用的限制类型。

numberOfItems Int32 :要提取的结果的最大数量。如果值为 0,则将所有已确定的元素添加到输出中。

ExtractData(String, String, String, String, Double, NchildInteractionMode, LimitType, Int32)

将数据提取为数据表,并由对象存储库中的字符串标识,同时指定下一页的目标、定义要提取数据的 XML 字符串、表格设置、等待下一页加载的时间、类型交互的类型、限制类型以及要提取的最大结果数。

ExtractData(
    string target,
    string nextPageTarget,
    string extractMetadata,
    [string tableSettings],
    [double delayBetweenPages],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])
ExtractData(
    string target,
    string nextPageTarget,
    string extractMetadata,
    [string tableSettings],
    [double delayBetweenPages],
    [NChildInteractionMode interactionMode],
    [LimitType limitExtractionTo],
    [int? numberOfItems])

target String :要从中获取数据的目标,由对象存储库中的字符串标识。

nextPageTarget String :下一页中要从中获取数据的目标,由对象存储库中的字符串标识。

extractMetadata String :一个 XML 字符串,用于定义从目标中提取的数据。

tableSettings String :提取数据时使用的表格设置。

delayBetweenPages Double :加载下一页的等待时间(以秒为单位)。

interactionMode NChildInteractionMode :执行操作时使用的交互类型(例如交互或交互)。

limitExtractionTo LimitType :指定提取数据时要使用的限制类型。

numberOfItems Int32 :要提取的结果的最大数量。如果值为 0,则将所有已确定的元素添加到输出中。

返回值

表格格式的提取数据。

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新