- sProgID
- The COM object progid.
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) |
Parameters
- sProgID
- The COM object progid.
Type Parameters
- T
- Interface of COM object to create.
Return Value
The interface to the COM object.For an example refer to InitializeBinding.
Target Platforms: Microsoft .NET Framework 2.0, Windows 2000, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7