Share via


ApplicationPart.ProcessVirtualPath Method

Resolves a path to the specified assembly or resource within an assembly by using the specified base virtual path and specified virtual path.

Namespace:  System.Web.WebPages
Assembly:  System.Web.WebPages (in System.Web.WebPages.dll)

Syntax

'Declaration
Public Shared Function ProcessVirtualPath ( _
    assembly As Assembly, _
    baseVirtualPath As String, _
    virtualPath As String _
) As String
'Usage
Dim assembly As [Assembly]
Dim baseVirtualPath As String 
Dim virtualPath As String 
Dim returnValue As String 

returnValue = ApplicationPart.ProcessVirtualPath(assembly, _
    baseVirtualPath, virtualPath)
public static string ProcessVirtualPath(
    Assembly assembly,
    string baseVirtualPath,
    string virtualPath
)
public:
static String^ ProcessVirtualPath(
    Assembly^ assembly, 
    String^ baseVirtualPath, 
    String^ virtualPath
)
static member ProcessVirtualPath : 
        assembly:Assembly * 
        baseVirtualPath:string * 
        virtualPath:string -> string
public static function ProcessVirtualPath(
    assembly : Assembly, 
    baseVirtualPath : String, 
    virtualPath : String
) : String

Parameters

Return Value

Type: System.String
The path of the assembly or resource.

Exceptions

Exception Condition
InvalidOperationException

assembly is not registered.

See Also

Reference

ApplicationPart Class

System.Web.WebPages Namespace