HttpServerUtility.CreateObjectFromClsid(String) Method
In diesem Artikel
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.
Creates a server instance of a COM object identified by the object's class identifier (CLSID).
public:
System::Object ^ CreateObjectFromClsid(System::String ^ clsid);
public object CreateObjectFromClsid(string clsid);
member this.CreateObjectFromClsid : string -> obj
Public Function CreateObjectFromClsid (clsid As String) As Object
- clsid
- String
The class identifier of the object to create an instance of.
The new object.
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.
String ClsidStr;
Object MyObject;
ClsidStr = "42754580-16b7-11ce-80eb-00aa003d7352";
MyObject = Server.CreateObject(ClsidStr);
Dim ClsidStr As String
Dim MyObject As Object
ClsidStr = "42754580-16b7-11ce-80eb-00aa003d7352"
MyObject = Server.CreateObject(ClsidStr)
Applies to
Produkt | Versionen |
---|---|
.NET Framework | 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1 |
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: