TYPEFLAGS 枚举

定义

警告

此 API 现已过时。

请改用 TYPEFLAGSUse TYPEFLAGS instead.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class TYPEFLAGS
[System.Flags]
[System.Obsolete]
[System.Runtime.InteropServices.ComVisible(false)]
[System.Obsolete("Use System.Runtime.InteropServices.ComTypes.TYPEFLAGS instead. https://go.microsoft.com/fwlink/?linkid=14202", false)]
[System.Serializable]
public enum TYPEFLAGS
type TYPEFLAGS = 
Public Enum TYPEFLAGS
继承
TYPEFLAGS
属性

字段

TYPEFLAG_FAGGREGATABLE 1024

该类支持聚合。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. 该标志为计算所得,没有该标志的对象描述语言。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

该接口中使用的类型与自动化(包括 VTBL 绑定支持)完全兼容。The types used in the interface are fully compatible with Automation, including VTBL binding support. 将接口设置为双重接口时,除设置 TYPEFLAG_FDUAL 以外,还设置此标志。Setting dual on an interface sets this flag in addition to TYPEFLAG_FDUAL. 在调度接口上不允许。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. 此标志指定注销类型库时不应注销类型库代理。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, the reverse of the default behavior.

注解

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

适用于