Creates a COM object by progid.
public static COMCreateObject<>(
string
)
'Declaration
Public Shared Function COMCreateObject(Of )( _
ByVal As String _
) As
'Usage
Dim sProgID As String
Dim value As
value = Utils.COMCreateObject(Of T)(sProgID)
public static COMCreateObject<T>(
string sProgID
)
function Leadtools.Ccow.Utils.COMCreateObject(
sProgID
)
public:
static COMCreateObjectgeneric<typename >
(
String^
)
Parameters
- sProgID
- The COM object progid.
Type Parameters
- T
- Interface to the COM object to create.
Return Value
The interface to the COM object.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2