Click or drag to resize

ScriptUtilGetResourcePath Method

Gets the file path to the given resource and document.

Namespace: Compiled.EDD.Scripting
Assembly: Compiled.EDD.Scripting (in Compiled.EDD.Scripting.dll) Version: 9.0.0.0-142fa9725
Syntax
C#
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
ExceptionCondition
NullReferenceExceptionThrown if the file resource is null.
See Also