IProvideDynamicClassInfo.GetDynamicClassInfo Method

Returns the ITypeInfo for a class with dynamic, changeable type information.

Namespace:  Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop (in Microsoft.VisualStudio.Shell.Interop.dll)

Syntax

'Declaration
Function GetDynamicClassInfo ( _
    <OutAttribute> ByRef ppTI As Type, _
    <OutAttribute> ByRef pdwCookie As UInteger _
) As Integer
int GetDynamicClassInfo(
    out Type ppTI,
    out uint pdwCookie
)
int GetDynamicClassInfo(
    [OutAttribute] Type^% ppTI, 
    [OutAttribute] unsigned int% pdwCookie
)
abstract GetDynamicClassInfo : 
        ppTI:Type byref * 
        pdwCookie:uint32 byref -> int
function GetDynamicClassInfo(
    ppTI : Type, 
    pdwCookie : uint
) : int

Parameters

  • pdwCookie
    Type: System.UInt32%

    [out] Pointer to a unique cookie. Can be used to identify the instance of the dynamic class when, for example, persisting the object and its type information.

Return Value

Type: System.Int32
If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Remarks

COM Signature

From designer.idl:

HRESULT IProvideDynamicClassInfo::GetDynamicClassInfo(
   [out] ITypeInfo ** ppTI, 
   [out] DWORD_PTR * pdwCookie
);

.NET Framework Security

See Also

Reference

IProvideDynamicClassInfo Interface

Microsoft.VisualStudio.Shell.Interop Namespace