HttpServerUtilityWrapper.CreateObject 方法

定義

建立 COM 物件的伺服器執行個體。

多載

CreateObject(String)

建立物件程式設計識別碼 (ProgID) 所識別之 COM 物件的伺服器執行個體。

CreateObject(Type)

建立以物件類型識別之 COM 物件的伺服器執行個體。

CreateObject(String)

建立物件程式設計識別碼 (ProgID) 所識別之 COM 物件的伺服器執行個體。

public:
 override System::Object ^ CreateObject(System::String ^ progID);
public override object CreateObject (string progID);
override this.CreateObject : string -> obj
Public Overrides Function CreateObject (progID As String) As Object

參數

progID
String

要建立執行個體的類別或物件類型。

傳回

新物件。

例外狀況

無法建立物件的執行個體。

適用於

CreateObject(Type)

建立以物件類型識別之 COM 物件的伺服器執行個體。

public:
 override System::Object ^ CreateObject(Type ^ type);
public override object CreateObject (Type type);
override this.CreateObject : Type -> obj
Public Overrides Function CreateObject (type As Type) As Object

參數

type
Type

表示要建立之物件的類型。

傳回

新物件。

適用於