HttpServerUtility.CreateObjectFromClsid(String) Metoda

Definice

Vytvoří instanci serveru objektu COM identifikovanou identifikátorem třídy objektu (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

Parametry

clsid
String

Identifikátor třídy objektu pro vytvoření instance.

Návraty

Nový objekt.

Výjimky

Instanci objektu nelze vytvořit.

Příklady

Následující příklad ukazuje, jak použít metodu CreateObjectFromClsid k vytvoření server instance com objektu.

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)
   

Platí pro

Viz také