HttpServerUtility.CreateObjectFromClsid(String) Method
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
Parameters
- clsid
- String
The class identifier of the object to create an instance of.
Returns
The new object.
Exceptions
An instance of the object could not be created.
Examples
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
See also
GitHub에서 Microsoft와 공동 작업
이 콘텐츠의 원본은 GitHub에서 찾을 수 있으며, 여기서 문제와 끌어오기 요청을 만들고 검토할 수도 있습니다. 자세한 내용은 참여자 가이드를 참조하세요.
.NET