ToResource(Assembly, String) Method

Assembly: EPiServer.Shell (in EPiServer.Shell.dll) Version: 7.0.859.1

Resolves the path of EPiServer Framework module resource such as a master page or config file

Syntax:

C#
public static string ToResource(
	Assembly moduleAssembly,
	string moduleRelativeResourcePath
)

Parameters:

moduleAssembly

Type: System.Reflection.Assembly

The module assembly.

moduleRelativeResourcePath

Type: System.String

A path relative to the given module's root path, e.g. "ClientResources/packages.config"

Remarks

If moduleRelativePath is an absolute or app-relative url it will be returned without beeing combined to the module's resource path.

See Also