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: 7.6.1.3-5cb5c356
Syntax
C#
public static string GetResourcePath(
	DocumentItem document,
	ResourceFileItem file
)

Parameters

document
Type: Compiled.EDD.ScriptingDocumentItem
The document the resource belongs to.
file
Type: Compiled.EDD.ScriptingResourceFileItem
The resource to get the full path of.

Return Value

Type: String
Relative path of the resource file combined with the root path.
Exceptions
ExceptionCondition
NullReferenceExceptionThrown if the file resource is null.
See Also