TYPEKIND 列舉

定義

指定各種類型的資料和函式。Specifies various types of data and functions.

public enum class TYPEKIND
public enum TYPEKIND
[System.Serializable]
public enum TYPEKIND
type TYPEKIND = 
Public Enum TYPEKIND
繼承
TYPEKIND
屬性

欄位

TKIND_ALIAS 6

為另一個型別的別名 (Alias) 的型別。A type that is an alias for another type.

TKIND_COCLASS 5

一組實作的元件介面。A set of implemented components interfaces.

TKIND_DISPATCH 4

可透過 IDispatch::Invoke 來存取的一組方法和屬性。A set of methods and properties that are accessible through IDispatch::Invoke. 預設情況下,介面會傳回 TKIND_DISPATCHBy default, dual interfaces return TKIND_DISPATCH.

TKIND_ENUM 0

一組列舉值。A set of enumerators.

TKIND_INTERFACE 3

具有虛擬函式 (Virtual Function) 的型別,其中全都是純虛擬函式 (Pure Virtual Function)。A type that has virtual functions, all of which are pure.

TKIND_MAX 8

列舉型別 (Enumeration) 資料標記的結尾。End-of-enumeration marker.

TKIND_MODULE 2

只能有靜態函式和資料的模組 (例如,DLL)。A module that can have only static functions and data (for example, a DLL).

TKIND_RECORD 1

沒有方法的結構。A structure with no methods.

TKIND_UNION 7

所有具有零位移 (Offset) 的成員的等位。A union of all members that have an offset of zero.

備註

如需 TYPEKIND的詳細資訊,請參閱 MSDN Library。For additional information about TYPEKIND, 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.

適用於