Resolves a resource Uri to a full path.

Namespace:  Gallio.Runtime.Extensibility
Assembly:  Gallio (in Gallio.dll) Version: 3.2.0.0 (3.2.528.0)

Syntax

C#
string ResolveResourcePath(
	Uri resourceUri
)
Visual Basic (Declaration)
Function ResolveResourcePath ( _
	resourceUri As Uri _
) As String

Parameters

resourceUri
Type: System..::.Uri
The resource Uri.

Return Value

The resolved full path of the resource.

Remarks

  • file: Maps to the file's local path.
  • plugin: Maps to a resource within the plugin's base directory, specified in the form: "plugin://Plugin.Id/RelativePath/To/Resource.txt".

Exceptions

ExceptionCondition
System..::.ArgumentNullExceptionThrown if resourceUri is null.
Gallio.Runtime..::.RuntimeExceptionThrown if the uri cannot be resolved.

See Also