Прочетете на английски Редактиране

Споделяне чрез


FUNCFLAGS Enum

Definition

Identifies the constants that define the properties of a function.

This enumeration supports a bitwise combination of its member values.

C#
[System.Flags]
public enum FUNCFLAGS
C#
[System.Flags]
[System.Serializable]
public enum FUNCFLAGS
Inheritance
FUNCFLAGS
Attributes

Fields

Name Value Description
FUNCFLAG_FRESTRICTED 1

The function should not be accessible from macro languages. This flag is intended for system-level functions or functions that type browsers should not display.

FUNCFLAG_FSOURCE 2

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

FUNCFLAG_FBINDABLE 4

The function that supports data binding.

FUNCFLAG_FREQUESTEDIT 8

When set, any call to a method that sets the property results first in a call to IPropertyNotifySink::OnRequestEdit. The implementation of OnRequestEdit determines if the call is allowed to set the property.

FUNCFLAG_FDISPLAYBIND 16

The function that is displayed to the user as bindable. FUNCFLAG_FBINDABLE must also be set.

FUNCFLAG_FDEFAULTBIND 32

The function that best represents the object. Only one function in a type can have this attribute.

FUNCFLAG_FHIDDEN 64

The function should not be displayed to the user, although it exists and is bindable.

FUNCFLAG_FUSESGETLASTERROR 128

The function supports GetLastError. If an error occurs during the function, the caller can call GetLastError to retrieve the error code.

FUNCFLAG_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, a call is generated to that member function. Permitted on members in dispinterfaces and interfaces; not permitted on modules.

FUNCFLAG_FUIDEFAULT 512

The type information member is the default member for display in the user interface.

FUNCFLAG_FNONBROWSABLE 1024

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

FUNCFLAG_FREPLACEABLE 2048

Tags the interface as having default behaviors.

FUNCFLAG_FIMMEDIATEBIND 4096

Mapped as individual bindable properties.

Remarks

For more information, see FUNCFLAGS 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

Продукт Версии
.NET Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
.NET Standard 1.1, 1.2, 1.3, 1.4, 1.5, 1.6, 2.0, 2.1
UWP 10.0