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 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.