T
Interface of COM object to create.
LEADTOOLS Medical (Leadtools.Ccow assembly) Send comments on this topic. | Back to Introduction - All Topics | Help Version 17.0.3.29
COMCreateObject<T> Method
See Also 
Leadtools.Ccow Namespace > Utils Class : COMCreateObject<T> Method



sProgID
The COM object progid.
sProgID
The COM object progid.
Creates a COM object by progid.

Syntax

Visual Basic (Declaration) 
Public Shared Function COMCreateObject(Of T)( _
   ByVal sProgID As String _
) As T
Visual Basic (Usage)Copy Code
Dim sProgID As String
Dim value As T
 
value = Utils.COMCreateObject(Of T)(sProgID)
C# 
public static T COMCreateObject<T>( 
   string sProgID
)
C++/CLI 
public:
static T^ COMCreateObjectgeneric<typename T>
( 
   String^ sProgID
) 

Parameters

sProgID
The COM object progid.

Type Parameters

T
Interface of COM object to create.

Return Value

The interface to the COM object.

Example

For an example refer to InitializeBinding.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7

See Also

Leadtools.Ccow requires a Document or Medical toolkit license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features