Redigera

Dela via


VARFLAGS Enum

Definition

Identifies the constants that define the properties of a variable.

This enumeration supports a bitwise combination of its member values.

public enum class VARFLAGS
[System.Flags]
public enum VARFLAGS
[System.Flags]
[System.Serializable]
public enum VARFLAGS
[<System.Flags>]
type VARFLAGS = 
[<System.Flags>]
[<System.Serializable>]
type VARFLAGS = 
Public Enum VARFLAGS
Inheritance
VARFLAGS
Attributes

Fields

Name Value Description
VARFLAG_FREADONLY 1

Assignment to the variable should not be allowed.

VARFLAG_FSOURCE 2

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

VARFLAG_FBINDABLE 4

The variable supports data binding.

VARFLAG_FREQUESTEDIT 8

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 16

The variable is displayed to the user as bindable. VARFLAG_FBINDABLE must also be set.

VARFLAG_FDEFAULTBIND 32

The variable is the single property that best represents the object. Only one variable in type information can have this attribute.

VARFLAG_FHIDDEN 64

The variable should not be displayed to the user in a browser, although it exists and is bindable.

VARFLAG_FRESTRICTED 128

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 256

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 512

The variable is the default display in the user interface.

VARFLAG_FNONBROWSABLE 1024

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

VARFLAG_FREPLACEABLE 2048

Tags the interface as having default behaviors.

VARFLAG_FIMMEDIATEBIND 4096

The variable is mapped as individual bindable properties.

Remarks

For more information, see VARFLAGS enumeration.

The common language runtime throws an exception when a COM method in native code returns an HRESULT. For more information, see How to: Map HRESULTs and Exceptions.

Applies to