Methods | ScriptUtil.GetResourcePath Method
Gets the file path to the given resource and document.
Syntax
C# Copy
public static string GetResourcePath( DocumentItem document, ResourceFileItem file )
Parameters
document DocumentItem
The document the resource belongs to.
file ResourceFileItem
The resource to get the full path of.
Return Value
String
Relative path of the resource file combined with the root path.
Exceptions
| Exception | Condition |
|---|---|
| NullReferenceException | Thrown if the file resource is null. |