asp.net.ph

Server.CreateObject Method

System.Web Namespace   HttpServerUtility Class


Creates a server instance of a COM object.

Overload List

1. Creates a server instance of a COM object identified by the object's Programmatic Identifier ( ProgID ).

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


Example

The following example creates an object using the object's ProgID.

NOTE: This example shows how to use one of the overloaded versions of CreateObject. For other examples that might be available, see the individual overload topics.

[ VB ]
Dim myObject As Object
myObject = Server.CreateObject ( "Acme.Component.3" )

[ C# ]
Object myObject;
myObject = Server.CreateObject ( "Acme.Component.3" );
See Also

HttpServerUtility Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph