VARFLAGS Enumeration
TOC
Collapse the table of content
Expand the table of content

VARFLAGS Enumeration

Identifies the constants that define the properties of a variable.

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

[Visual Basic]
<Flags>
<Serializable>
<ComVisible(False)>
Public Enum VARFLAGS
[C#]
[Flags]
[Serializable]
[ComVisible(false)]
public enum VARFLAGS
[C++]
[Flags]
[Serializable]
[ComVisible(false)]
__value public enum VARFLAGS
[JScript]
public
   Flags
 Serializable
 ComVisible(false)
enum VARFLAGS

Remarks

For additional information about VARFLAGS, see the MSDN Library.

Members

Member name Description Value
VARFLAG_FBINDABLE The variable supports data binding. 4
VARFLAG_FDEFAULTBIND The variable is the single property that best represents the object. Only one variable in type information can have this attribute. 32
VARFLAG_FDEFAULTCOLLELEM Permits an optimization in which the compiler looks for a member named "xyz" on the type of "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. Permitted on members in dispinterfaces and interfaces; not permitted on modules. 256
VARFLAG_FDISPLAYBIND The variable is displayed to the user as bindable. VARFLAG_FBINDABLE must also be set. 16
VARFLAG_FHIDDEN The variable should not be displayed to the user in a browser, although it exists and is bindable. 64
VARFLAG_FIMMEDIATEBIND The variable is mapped as individual bindable properties. 4096
VARFLAG_FNONBROWSABLE The variable appears in an object browser, but not in a properties browser. 1024
VARFLAG_FREADONLY Assignment to the variable should not be allowed. 1
VARFLAG_FREPLACEABLE Tags the interface as having default behaviors. 2048
VARFLAG_FREQUESTEDIT When set, any attempt to directly change the property results in a call to IPropertyNotifySink::OnRequestEdit. The implementation of OnRequestEdit determines if the change is accepted. 8
VARFLAG_FRESTRICTED The variable should not be accessible from macro languages. This flag is intended for system-level variables or variables that you do not want type browsers to display. 128
VARFLAG_FSOURCE The variable returns an object that is a source of events. 2
VARFLAG_FUIDEFAULT The variable is the default display in the user interface. 512

Requirements

Namespace: System.Runtime.InteropServices

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Mscorlib (in Mscorlib.dll)

See Also

System.Runtime.InteropServices Namespace

Show:
© 2016 Microsoft