HttpServerUtilityBase.CreateObject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
When overridden in a derived class, creates a server instance of a COM object.
Overloads
CreateObject(String) |
When overridden in a derived class, creates a server instance of a COM object that is identified by the object's programmatic identifier (ProgID). |
CreateObject(Type) |
When overridden in a derived class, creates a server instance of a COM object that is identified by the object's type. |
CreateObject(String)
When overridden in a derived class, creates a server instance of a COM object that is identified by the object's programmatic identifier (ProgID).
public:
virtual System::Object ^ CreateObject(System::String ^ progID);
public virtual object CreateObject (string progID);
abstract member CreateObject : string -> obj
override this.CreateObject : string -> obj
Public Overridable 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
Always.
Applies to
CreateObject(Type)
When overridden in a derived class, creates a server instance of a COM object that is identified by the object's type.
public:
virtual System::Object ^ CreateObject(Type ^ type);
public virtual object CreateObject (Type type);
abstract member CreateObject : Type -> obj
override this.CreateObject : Type -> obj
Public Overridable Function CreateObject (type As Type) As Object
Parameters
- type
- Type
A type that represents the object to create.
Returns
The new object.
Exceptions
Always.
Applies to
.NET