BuildManager.CreateInstanceFromVirtualPath(String, Type) Método
Definição
Processa um arquivo com base em seu caminho virtual fornecido e cria uma instância do resultado.Processes a file, given its virtual path, and creates an instance of the result.
public:
static System::Object ^ CreateInstanceFromVirtualPath(System::String ^ virtualPath, Type ^ requiredBaseType);
public static object CreateInstanceFromVirtualPath (string virtualPath, Type requiredBaseType);
static member CreateInstanceFromVirtualPath : string * Type -> obj
Public Shared Function CreateInstanceFromVirtualPath (virtualPath As String, requiredBaseType As Type) As Object
Parâmetros
- virtualPath
- String
O caminho virtual do arquivo do qual criar uma instância.The virtual path of the file to create an instance of.
- requiredBaseType
- Type
O tipo base que define o objeto a ser criado.The base type that defines the object to be created.
Retornos
O Object que representa a instância do arquivo processado.The Object that represents the instance of the processed file.
Comentários
O CreateInstanceFromVirtualPath método funciona para páginas compiladas e não compiladas.The CreateInstanceFromVirtualPath method works for compiled and non-compile pages.