This topic has not yet been rated - Rate this topic

VARFLAGS Enumeration

Note: This API is now obsolete.

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

Namespace:  System.Runtime.InteropServices
Assembly:  mscorlib (in mscorlib.dll)
[SerializableAttribute]
[ObsoleteAttribute("Use System.Runtime.InteropServices.ComTypes.VARFLAGS instead. http://go.microsoft.com/fwlink/?linkid=14202", 
	false)]
[FlagsAttribute]
public enum VARFLAGS
Member name Description
VARFLAG_FREADONLY Assignment to the variable should not be allowed.
VARFLAG_FSOURCE The variable returns an object that is a source of events.
VARFLAG_FBINDABLE The variable supports data binding.
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.
VARFLAG_FDISPLAYBIND The variable is displayed to the user as bindable. VARFLAGS.VARFLAG_FBINDABLE must also be set.
VARFLAG_FDEFAULTBIND The variable is the single property that best represents the object. Only one variable in type information can have this attribute.
VARFLAG_FHIDDEN The variable should not be displayed to the user in a browser, although it exists and is bindable.
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.
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.
VARFLAG_FUIDEFAULT The variable is the default display in the user interface.
VARFLAG_FNONBROWSABLE The variable appears in an object browser, but not in a properties browser.
VARFLAG_FREPLACEABLE Tags the interface as having default behaviors.
VARFLAG_FIMMEDIATEBIND The variable is mapped as individual bindable properties.

For additional information about VARFLAGS, see the MSDN Library.

.NET Framework

Supported in: 1.1, 1.0
Obsolete (compiler warning) in 4
Obsolete (compiler warning) in 3.5
Obsolete (compiler warning) in 3.5 SP1
Obsolete (compiler warning) in 3.0
Obsolete (compiler warning) in 3.0 SP1
Obsolete (compiler warning) in 3.0 SP2
Obsolete (compiler warning) in 2.0
Obsolete (compiler warning) in 2.0 SP1
Obsolete (compiler warning) in 2.0 SP2

.NET Framework Client Profile

Obsolete (compiler warning) in 4
Obsolete (compiler warning) in 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ