TYPEATTR TYPEATTR TYPEATTR TYPEATTR Struct

定义

包含 UCOMITypeInfo 的特性。Contains attributes of a UCOMITypeInfo.

public value class TYPEATTR
public struct TYPEATTR
type TYPEATTR = struct
Public Structure TYPEATTR
继承

注解

有关其他信息TYPEATTR,请参阅 MSDN 库。For additional information about TYPEATTR, see the MSDN Library.

在本机代码中的 COM 方法将返回的 HRESULT 时,公共语言运行时将引发异常。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 有关更多信息,请参见 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

字段

cbAlignment cbAlignment cbAlignment cbAlignment

指定此类型实例的字节对齐方式。Specifies the byte alignment for an instance of this type.

cbSizeInstance cbSizeInstance cbSizeInstance cbSizeInstance

此类型的实例的大小。The size of an instance of this type.

cbSizeVft cbSizeVft cbSizeVft cbSizeVft

此类型的虚拟方法表 (VTBL) 的大小。The size of this type's virtual method table (VTBL).

cFuncs cFuncs cFuncs cFuncs

指示此结构描述的接口上的函数数目。Indicates the number of functions on the interface this structure describes.

cImplTypes cImplTypes cImplTypes cImplTypes

指示此结构描述的接口上实现的接口的数量。Indicates the number of implemented interfaces on the interface this structure describes.

cVars cVars cVars cVars

指示此结构所描述的接口上的变量和数据字段的数目。Indicates the number of variables and data fields on the interface described by this structure.

dwReserved dwReserved dwReserved dwReserved

留待将来使用。Reserved for future use.

guid guid guid guid

类型信息的 GUID。The GUID of the type information.

idldescType idldescType idldescType idldescType

所描述类型的 IDL 属性。IDL attributes of the described type.

lcid lcid lcid lcid

成员名称和文档字符串的区域设置。Locale of member names and documentation strings.

lpstrSchema lpstrSchema lpstrSchema lpstrSchema

留待将来使用。Reserved for future use.

MEMBER_ID_NIL MEMBER_ID_NIL MEMBER_ID_NIL MEMBER_ID_NIL

memidConstructormemidDestructor 字段一起使用的常数。A constant used with the memidConstructor and memidDestructor fields.

memidConstructor memidConstructor memidConstructor memidConstructor

构造函数的 ID,如果没有,则为 MEMBER_ID_NILID of constructor, or MEMBER_ID_NIL if none.

memidDestructor memidDestructor memidDestructor memidDestructor

析构函数的 ID,如果没有,则为 MEMBER_ID_NILID of destructor, or MEMBER_ID_NIL if none.

tdescAlias tdescAlias tdescAlias tdescAlias

如果 typekind == TKIND_ALIAS,则指定该类型(此类型为该类型的别名)。If typekind == TKIND_ALIAS, specifies the type for which this type is an alias.

typekind typekind typekind typekind

TYPEKIND 值描述此信息所描述的类型。A TYPEKIND value describing the type this information describes.

wMajorVerNum wMajorVerNum wMajorVerNum wMajorVerNum

主版本号。Major version number.

wMinorVerNum wMinorVerNum wMinorVerNum wMinorVerNum

次版本号。Minor version number.

wTypeFlags wTypeFlags wTypeFlags wTypeFlags

描述此信息的 TYPEFLAGS 值。A TYPEFLAGS value describing this information.

适用于