WebPageBase.CreateInstanceFromVirtualPath Method
Creates a new instance of the WebPageBase class by using the specified virtual path.
Namespace: System.Web.WebPages
Assembly: System.Web.WebPages (in System.Web.WebPages.dll)
Syntax
'Declaration
Public Shared Function CreateInstanceFromVirtualPath ( _
virtualPath As String _
) As WebPageBase
'Usage
Dim virtualPath As String
Dim returnValue As WebPageBase
returnValue = WebPageBase.CreateInstanceFromVirtualPath(virtualPath)
public static WebPageBase CreateInstanceFromVirtualPath(
string virtualPath
)
public:
static WebPageBase^ CreateInstanceFromVirtualPath(
String^ virtualPath
)
static member CreateInstanceFromVirtualPath :
virtualPath:string -> WebPageBase
public static function CreateInstanceFromVirtualPath(
virtualPath : String
) : WebPageBase
Parameters
- virtualPath
Type: System.String
The virtual path to use to create the instance.
Return Value
Type: System.Web.WebPages.WebPageBase
The new WebPageBase object.