asp.net.ph

Server.CreateObjectFromClsid Method

System.Web Namespace   HttpServerUtility Class


Creates a server instance of a COM object identified by the object's class identifier ( CLSID ).

[ VB ]
Public Function CreateObjectFromClsid ( _
   ByVal clsid As String _
) As Object

[ C# ]
public object CreateObjectFromClsid (
   string clsid
);

[ C++ ]
public: Object* CreateObjectFromClsid (
   String* clsid
);

[ JScript ]
public function CreateObjectFromClsid (
   clsid : String
) : Object;

Parameters

clsid
The class identifier of the object to be instantiated.

Return Value

The new object.

Exceptions


Exception Type Condition
HttpException Occurs when the object could not be instantiated.

Example

[ VB ]
Dim ClsidStr As String
Dim myObject As Object
 
ClsidStr = "42754580-16b7-11ce-80eb-00aa003d7352"
myObject = Server.CreateObject ( ClsidStr )

[ C# ]
String ClsidStr;
Object myObject;

ClsidStr = "42754580-16b7-11ce-80eb-00aa003d7352";
myObject = Server.CreateObject ( ClsidStr );
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