ComponentOne Bitmap for WinForms
C1.Win.C1DX.4.8 Assembly / C1.Util.DX Namespace / CppObject Class / FromPointer<T> Method
The ComObject class that will be returned
The native pointer to a com object.

In This Topic
    FromPointer<T> Method
    In This Topic
    Instantiate a ComObject from a native pointer.
    Syntax
    'Declaration
     
    Public Shared Function FromPointer(Of T As CppObject)( _
       ByVal comObjectPtr As System.IntPtr _
    ) As T
    public static T FromPointer<T>( 
       System.IntPtr comObjectPtr
    )
    where T: CppObject

    Parameters

    comObjectPtr
    The native pointer to a com object.

    Type Parameters

    T
    The ComObject class that will be returned

    Return Value

    An instance of T binded to the native pointer
    See Also