TypeLibVarFlags TypeLibVarFlags TypeLibVarFlags TypeLibVarFlags Enum


Describes the original settings of the VARFLAGS in the COM type library from which the variable was imported.

This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values.

public enum class TypeLibVarFlags
public enum TypeLibVarFlags
type TypeLibVarFlags = 
Public Enum TypeLibVarFlags


FBindable FBindable FBindable FBindable 4

The variable supports data binding.

FDefaultBind FDefaultBind FDefaultBind FDefaultBind 32

The variable is the single property that best represents the object. Only one variable in a type info can have this value.

FDefaultCollelem FDefaultCollelem FDefaultCollelem FDefaultCollelem 256

Permits an optimization in which the compiler looks for a member named "xyz" on the type "abc". If such a member is found and is flagged as an accessor function for an element of the default collection, then a call is generated to that member function.

FDisplayBind FDisplayBind FDisplayBind FDisplayBind 16

The variable is displayed as bindable. FBindable must also be set.

FHidden FHidden FHidden FHidden 64

The variable should not be displayed in a browser, though it exists and is bindable.

FImmediateBind FImmediateBind FImmediateBind FImmediateBind 4096

The variable is mapped as individual bindable properties.

FNonBrowsable FNonBrowsable FNonBrowsable FNonBrowsable 1024

The variable appears in an object browser, but not in a properties browser.

FReadOnly FReadOnly FReadOnly FReadOnly 1

Assignment to the variable should not be allowed.

FReplaceable FReplaceable FReplaceable FReplaceable 2048

Tags the interface as having default behaviors.

FRequestEdit FRequestEdit FRequestEdit FRequestEdit 8

Indicates that the property supports the COM OnRequestEdit notification.

FRestricted FRestricted FRestricted FRestricted 128

This flag is intended for system-level functions or functions that type browsers should not display.

FSource FSource FSource FSource 2

The variable returns an object that is a source of events.

FUiDefault FUiDefault FUiDefault FUiDefault 512

The default display in the user interface.


TypeLibVarFlags is used in conjunction with the TypeLibVarAttribute. The flags are retained for reference only. They are not used by the common language runtime.

For more information, see VARFLAGS in the MSDN library.

Applies to