Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

HttpServerUtility::CreateObjectFromClsid Method (String^)

 

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

Namespace:   System.Web
Assembly:  System.Web (in System.Web.dll)

public:
[SecurityPermissionAttribute(SecurityAction::Demand, UnmanagedCode = true)]
Object^ CreateObjectFromClsid(
	String^ clsid
)

Parameters

clsid
Type: System::String^

The class identifier of the object to create an instance of.

Return Value

Type: System::Object^

The new object.

Exception Condition
HttpException

An instance of the object could not be created.

The following example demonstrates how to use the CreateObjectFromClsid method to create a server instance of a COM object.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2017 Microsoft