BuildManager.CreateInstanceFromVirtualPath(String, Type) 方法

定義

根據虛擬路徑處理檔案,並建立結果的實例。

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

參數

virtualPath
String

建立 的虛擬路徑是檔案的實例。

requiredBaseType
Type

定義要建立物件的基底型態。

傳回

the Object that 代表處理中檔案的實例。

備註

CreateInstanceFromVirtualPath 方法適用於已編譯與非編譯頁面。

適用於