HttpServerUtilityWrapper.CreateObject 方法

定義

建立一個 COM 物件的伺服器實例。

多載

名稱 Description
CreateObject(String)

建立一個 COM 物件的伺服器實例,並以物件的程式識別碼(ProgID)來識別。

CreateObject(Type)

建立一個以物件類型識別的 COM 物件的伺服器實例。

CreateObject(String)

建立一個 COM 物件的伺服器實例,並以物件的程式識別碼(ProgID)來識別。

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

一個代表要建立物件的型別。

傳回

新物件。

適用於