Edit

Share via


HttpServerUtilityWrapper.CreateObject Method

Definition

Creates a server instance of a COM object.

Overloads

CreateObject(String)

Creates a server instance of a COM object that is identified by the object's programmatic identifier (ProgID).

CreateObject(Type)

Creates a server instance of a COM object that is identified by the object's type.

CreateObject(String)

Creates a server instance of a COM object that is identified by the object's programmatic identifier (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

Parameters

progID
String

The class or type of object to create an instance of.

Returns

The new object.

Exceptions

An instance of the object could not be created.

Applies to

CreateObject(Type)

Creates a server instance of a COM object that is identified by the object's type.

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

Parameters

type
Type

A type that represents the object to create.

Returns

The new object.

Applies to