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

工作流活动

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

获取本地路径的资源

扩展方法

备注:

在 C# 中,您可以在ISystemService类型的任何对象上将此方法作为实例方法来调用。使用实例方法语法调用此方法时,请省略第一个参数。有关更多信息,请参阅扩展方法 (Visual Basic)扩展方法(C# 编程指南)

从文件或文件夹的本地路径构建资源。

定义

命名空间: UiPath.Activities.System.API

程序集: UiPath.System.Activities.Api(在 UiPath.System.Activities.Api.dll 中)

GetResourceForLocalPath

public static IResource GetResourceForLocalPath(
    this ISystemService system,
    string path,
    PathType pathType
)
public static IResource GetResourceForLocalPath(
    this ISystemService system,
    string path,
    PathType pathType
)

system ISystemService(也称为系统服务)

path String : 文件或文件夹的本地路径。

pathType PathType :资源的类型。

返回值

IResource

返回本地路径的 IResource 对象。

  • 定义
  • GetResourceForLocalPath
  • 返回值

此页面有帮助吗?

连接

需要帮助? 支持

想要了解详细内容? UiPath Academy

有问题? UiPath 论坛

保持更新