IProvideDynamicClassInfo.GetDynamicClassInfo(Type, UInt32) 方法

定义

返回 ITypeInfo 具有动态的可更改类型信息的类的。

public:
 int GetDynamicClassInfo([Runtime::InteropServices::Out] Type ^ % ppTI, [Runtime::InteropServices::Out] System::UInt32 % pdwCookie);
public int GetDynamicClassInfo (out Type ppTI, out uint pdwCookie);
abstract member GetDynamicClassInfo : Type * uint32 -> int
Public Function GetDynamicClassInfo (ByRef ppTI As Type, ByRef pdwCookie As UInteger) As Integer

参数

ppTI
Type

弄指向接口的指针 ITypeInfo

pdwCookie
UInt32

弄指向唯一 cookie 的指针。 例如,可用于标识动态类的实例(例如,保留对象及其类型信息)。

返回

Int32

如果该方法成功,则它会返回 S_OK。 如果该方法失败,则会返回错误代码。

注解

COM 签名

从设计器 .idl:

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

适用于