HttpServerUtility.CreateObject 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.
Overloads
CreateObject(String) |
Creates a server instance of a COM object identified by the object's programmatic identifier (ProgID). |
CreateObject(Type) |
Creates a server instance of a COM object identified by the object's type. |
CreateObject(String)
Creates a server instance of a COM object identified by the object's programmatic identifier (ProgID).
public:
System::Object ^ CreateObject(System::String ^ progID);
public object CreateObject (string progID);
member this.CreateObject : string -> obj
Public Function CreateObject (progID As String) As Object
Parameters
- progID
- String
The class or type of object to create an instance of.
Returns
The new object.
Exceptions
An instance of the object could not be created.
Examples
The following example creates an object by using the object's ProgID.
Object MyObject;
MyObject = Server.CreateObject("Acme.Component.3");
Dim MyObject As Object
MyObject = Server.CreateObject("Acme.Component.3")
See also
Applies to
CreateObject(Type)
Creates a server instance of a COM object identified by the object's type.
public:
System::Object ^ CreateObject(Type ^ type);
public object CreateObject (Type type);
member this.CreateObject : Type -> obj
Public Function CreateObject (type As Type) As Object
Parameters
Returns
The new object.
Applies to
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기