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;
- clsid
- The class identifier of the object to be instantiated.
The new object.
Exception Type |
Condition |
HttpException |
Occurs when the object could not be instantiated. |
[ 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 );
HttpServerUtility Members