Resolves a resource Uri to a full path.
Namespace:
Gallio.Runtime.ExtensibilityAssembly: 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
| Exception | Condition |
|---|---|
| System..::.ArgumentNullException | Thrown if resourceUri is null. |
| Gallio.Runtime..::.RuntimeException | Thrown if the uri cannot be resolved. |
