GetResourceForLocalPath
Extension method
note
In C#, you can call this method as an instance method on any object of type ISystemService. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).
Build a resource from the local path of the file or folder.
Definition
Namespace: UiPath.Activities.System.API
Assembly: UiPath.System.Activities.Api (in UiPath.System.Activities.Api.dll)
GetResourceForLocalPath
public static IResource GetResourceForLocalPath(
this ISystemService system,
string path,
PathType pathType
)
system ISystemService
path String : The local path of the file or folder.
pathType PathType : The type of the resource.
Return value
IResource
Returns an IResource object for a local path.