TYPEFLAGS 列舉

定義

定義類型描述的屬性 (Property 和 Attribute)。Defines the properties and attributes of a type description.

此列舉具有 FlagsAttribute 個屬性允許以位元方式合併其成員值。

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

欄位

TYPEFLAG_FAGGREGATABLE 1024

類別支援彙總 (Aggregation)。The class supports aggregation.

TYPEFLAG_FAPPOBJECT 1

描述 Application 物件的型別描述。A type description that describes an Application object.

TYPEFLAG_FCANCREATE 2

可以由 ITypeInfo::CreateInstance 建立的型別的執行個體。Instances of the type can be created by ITypeInfo::CreateInstance.

TYPEFLAG_FCONTROL 32

型別是衍生其他型別的控制項,不應該向使用者顯示。The type is a control from which other types will be derived and should not be displayed to users.

TYPEFLAG_FDISPATCHABLE 4096

指示介面是從 IDispatch 直接或間接衍生的。Indicates that the interface derives from IDispatch, either directly or indirectly. 這個旗標是計算得來的,沒有這個旗標的物件描述語言 (Object Description Language)。This flag is computed; there is no Object Description Language for the flag.

TYPEFLAG_FDUAL 64

介面同時提供 IDispatch 和 VTBL 繫結。The interface supplies both IDispatch and VTBL binding.

TYPEFLAG_FHIDDEN 16

型別不應顯示到瀏覽器。The type should not be displayed to browsers.

TYPEFLAG_FLICENSED 4

型別已經授權。The type is licensed.

TYPEFLAG_FNONEXTENSIBLE 128

介面在執行階段不能加入成員。The interface cannot add members at run time.

TYPEFLAG_FOLEAUTOMATION 256

介面中使用的型別與 Automation 完全相容,包括 VTBL 繫結支援。The types used in the interface are fully compatible with Automation, including VTBL binding support. 介面的雙重設定為同時設定這個旗標和 TYPEFLAG_FDUALSetting dual on an interface sets both this flag and the TYPEFLAG_FDUAL. 分配介面不允許這個旗標。This flag is not allowed on dispinterfaces.

TYPEFLAG_FPREDECLID 8

型別已預先定義。The type is predefined. 用戶端應用程式應該自動建立具有這項屬性之物件的單一執行個體。The client application should automatically create a single instance of the object that has this attribute. 指向該物件的變數名稱與該物件的類別名稱相同。The name of the variable that points to the object is the same as the class name of the object.

TYPEFLAG_FPROXY 16384

指示介面會使用 Proxy/Stub 動態連結程式庫。Indicates that the interface will be using a proxy/stub dynamic link library. 這個旗標指定當型別程式庫被取消登錄時,型別程式庫 Proxy 不應被取消登錄。This flag specifies that the type library proxy should not be unregistered when the type library is unregistered.

TYPEFLAG_FREPLACEABLE 2048

物件支援 IConnectionPointWithDefault,而且具有預設的行為。The object supports IConnectionPointWithDefault, and has default behaviors.

TYPEFLAG_FRESTRICTED 512

應該不可從巨集語言存取。Should not be accessible from macro languages. 這個旗標是供系統層級的型別或型別瀏覽器不應顯示的型別使用。This flag is intended for system-level types or types that type browsers should not display.

TYPEFLAG_FREVERSEBIND 8192

指示基底介面在檢查子系前應先檢查名稱解析,與預設行為相反。Indicates base interfaces should be checked for name resolution before checking children, which is the reverse of the default behavior.

備註

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

適用於