←Select platform

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

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Ccow Assembly
Click or drag to resize