活动
最新
False
横幅背景图像
用户界面自动化活动
上次更新日期 2024年4月26日

GetSelectedItem

从目标元素中获取选定的项目。

定义

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

程序集:UiPath.MobileAutomation.API(在 UiPath.MobileAutomation.API.dll 中)

重载

重载描述
GetSelectedItem(IElementDescriptor, MobileOptions.GetSelectedItemOptions)从目标用户界面元素中检索选定的项目,标识为IElementDescriptor
GetSelectedItem(ObjectRepositoryTarget, MobileOptions.GetSelectedItemOptions)从目标用户界面元素中检索选定的项目,标识为ObjectRepositoryTarget
GetSelectedItem(SelectorTarget, MobileOptions.GetSelectedItemOptions)从目标用户界面元素中检索选定的项目,标识为SelectorTarget

ElementExists(IElementDescriptor, MobileOptions.ElementExistsOptions)

从目标用户界面元素中检索选定的项目,标识为IElementDescriptor
GetSelectedItem(
	    IElementDescriptor element,
	    MobileOptions. GetSelectedItemOptions options = null
)GetSelectedItem(
	    IElementDescriptor element,
	    MobileOptions. GetSelectedItemOptions options = null
)
element IElementDescriptor
使用ObjectRepository.Descriptors类访问的对象存储库中的用户界面元素。
MobileOptions.GetSelectedItemOptions MobileOptions.GetSelectedItemOptions 类(可选)
GetSelectedItem 操作指定 MobileOptions.GetSelectedItemOptions 。 默认值为 null。

GetSelectedItem(ObjectRepositoryTarget, MobileOptions.GetSelectedItemOptions)

从目标用户界面元素中检索选定的项目,标识为ObjectRepositoryTarget
GetSelectedItem(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetSelectedItemOptions options = null
)GetSelectedItem(
	    ObjectRepositoryTarget objectRepositoryTarget,
	    MobileOptions. GetSelectedItemOptions options = null
)
objectRepositoryTarget ObjectRepositoryTarget
ObjectRepositoryTarget类型的对象。 可以使用FromObjectRepository(String, String, String, String)FromObjectRepository(String[] , String, String, String)方法构建。
MobileOptions.GetSelectedItemOptions MobileOptions.GetSelectedItemOptions 类(可选)
GetSelectedItem 操作指定 MobileOptions.GetSelectedItemOptions 。 默认值为 null。

GetSelectedItem(SelectorTarget, MobileOptions.GetSelectedItemOptions)

从目标用户界面元素中检索选定的项目,标识为SelectorTarget
string GetSelectedItem(
	    SelectorTarget targetSelector,
	    MobileOptions. GetSelectedItemOptions options = null
)string GetSelectedItem(
	    SelectorTarget targetSelector,
	    MobileOptions. GetSelectedItemOptions options = null
)
targetSelector SelectorTarget
SelectorTarget类型的对象。 可以使用FromSelector(String)方法构建。
MobileOptions.GetSelectedItemOptions MobileOptions.GetSelectedItemOptions 类(可选)
GetSelectedItem 操作指定 MobileOptions.GetSelectedItemOptions 。 默认值为 null。

返回值

已选择的项目,存储在字符串中。

此页面是否有帮助?

获取您需要的帮助
了解 RPA - 自动化课程
UiPath Community 论坛
Uipath 白色徽标
信任与安全
© 2005-2024 UiPath. All rights reserved.