Version

BuildEmbeddedResourceUri Method

Creates a Uri for a resource embedded in an assembly
Syntax
'Declaration
 
Public Shared Function BuildEmbeddedResourceUri( _
   ByVal assembly As Assembly, _
   ByVal resourcePath As String _
) As Uri
public static Uri BuildEmbeddedResourceUri( 
   Assembly assembly,
   string resourcePath
)

Parameters

assembly
The assembly that contains the resource
resourcePath
The relative path to the resource (e.g. "Looks/Onyx.xaml")

Return Value

A Uri to the resource.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, Windows 7, Windows Server 2012, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also