<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=6889170&amp;fmt=gif">
Skip to content
  • There are no suggestions because the search field is empty.

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.

See Also

Reference
ScriptUtil Class
Compiled.EDD.Scripting Namespace