TYPEATTR 結構

定義

含有 UCOMITypeInfo 的屬性 (Attribute)。Contains attributes of a UCOMITypeInfo.

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

備註

如需有關TYPEATTR的詳細資訊, 請參閱 MSDN Library。For additional information about TYPEATTR, see the MSDN Library.

當原生程式碼中的 COM 方法傳回 HRESULT 時, common language runtime 會擲回例外狀況。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

指定這個型別之執行個體的位元組對齊。Specifies the byte alignment for an instance of this type.

cbSizeInstance

這個型別之執行個體的大小。The size of an instance of this type.

cbSizeVft

這個型別的虛擬方法表 (Virtual Method Table,VTBL) 的大小。The size of this type's virtual method table (VTBL).

cFuncs

指示這個結構所描述之介面上的函式數目。Indicates the number of functions on the interface this structure describes.

cImplTypes

指示這個結構所描述之介面上已實作的介面數目。Indicates the number of implemented interfaces on the interface this structure describes.

cVars

指示這個結構所描述之介面上變數和資料欄位的數目。Indicates the number of variables and data fields on the interface described by this structure.

dwReserved

保留供未來使用。Reserved for future use.

guid

型別資訊的 GUID。The GUID of the type information.

idldescType

所描述型別的 IDL 屬性。IDL attributes of the described type.

lcid

成員名稱和文件字串的地區設定 (Locale)。Locale of member names and documentation strings.

lpstrSchema

保留供未來使用。Reserved for future use.

MEMBER_ID_NIL

配合 memidConstructormemidDestructor 欄位使用的常數。A constant used with the memidConstructor and memidDestructor fields.

memidConstructor

建構函式的 ID;如果沒有,則為 MEMBER_ID_NILID of constructor, or MEMBER_ID_NIL if none.

memidDestructor

解構函式的 ID;如果沒有,則為 MEMBER_ID_NILID of destructor, or MEMBER_ID_NIL if none.

tdescAlias

如果 typekind == TKIND_ALIAS,指定這個類型為其別名的類型。If typekind == TKIND_ALIAS, specifies the type for which this type is an alias.

typekind

TYPEKIND 值,描述這項資訊所描述的型別。A TYPEKIND value describing the type this information describes.

wMajorVerNum

主要版本號碼。Major version number.

wMinorVerNum

次要版本號碼。Minor version number.

wTypeFlags

描述這項資訊的 TYPEFLAGS 值。A TYPEFLAGS value describing this information.

適用於