COMCreateObject<T> Method

Summary
Creates a COM object by progid.
Syntax
C#
VB
C++
public static T COMCreateObject<T>( 
   string sProgID 
) 
Public Shared Function COMCreateObject(Of T)( _ 
   ByVal sProgID As String _ 
) As T 
public: 
static _T^_ COMCreateObjectgeneric<typename T> 
(  
   String^ sProgID 
)  

Parameters

sProgID
The COM object progid.

Type Parameters

T
Interface to the COM object to create.

Return Value

The interface to the COM object.

Example

For an example refer to InitializeBinding.

Requirements

Target Platforms

See Also

Reference

Utils Class

Utils Members

Help Version 21.0.2021.3.3
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Ccow Assembly