Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

VARFLAGS Enumeration

Note: This enumeration is new in the .NET Framework version 2.0.

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.

Namespace: System.Runtime.InteropServices.ComTypes
Assembly: mscorlib (in mscorlib.dll)

[SerializableAttribute] 
[FlagsAttribute] 
public enum VARFLAGS : short
/** @attribute SerializableAttribute() */ 
/** @attribute FlagsAttribute() */ 
public enum VARFLAGS
SerializableAttribute 
FlagsAttribute 
public enum VARFLAGS
 Member nameDescription
VARFLAG_FBINDABLEThe variable supports data binding. 
VARFLAG_FDEFAULTBINDThe variable is the single property that best represents the object. Only one variable in type information can have this attribute. 
VARFLAG_FDEFAULTCOLLELEMPermits 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_FDISPLAYBINDThe variable is displayed to the user as bindable. VARFLAG_FBINDABLE must also be set. 
VARFLAG_FHIDDENThe variable should not be displayed to the user in a browser, although it exists and is bindable. 
VARFLAG_FIMMEDIATEBINDThe variable is mapped as individual bindable properties. 
VARFLAG_FNONBROWSABLEThe variable appears in an object browser, but not in a properties browser. 
VARFLAG_FREADONLYAssignment to the variable should not be allowed. 
VARFLAG_FREPLACEABLETags the interface as having default behaviors. 
VARFLAG_FREQUESTEDITWhen 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_FRESTRICTEDThe 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_FSOURCEThe variable returns an object that is a source of events. 
VARFLAG_FUIDEFAULTThe variable is the default display in the user interface. 

For additional information about VARFLAGS, see the MSDN Library.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.