FUNCFLAGS FUNCFLAGS FUNCFLAGS FUNCFLAGS Enum

定义

标识定义函数属性的常量。Identifies the constants that define the properties of a function.

此枚举有一个 FlagsAttribute 属性,允许按位组合成员值。

public enum class FUNCFLAGS
[System.Flags]
[System.Serializable]
public enum FUNCFLAGS
type FUNCFLAGS = 
Public Enum FUNCFLAGS
继承
属性

字段

FUNCFLAG_FBINDABLE FUNCFLAG_FBINDABLE FUNCFLAG_FBINDABLE FUNCFLAG_FBINDABLE 4

支持数据绑定的函数。The function that supports data binding.

FUNCFLAG_FDEFAULTBIND FUNCFLAG_FDEFAULTBIND FUNCFLAG_FDEFAULTBIND FUNCFLAG_FDEFAULTBIND 32

最佳表示此对象的函数。The function that best represents the object. 一个类型中只能有一个函数可以具有此特性。Only one function in a type can have this attribute.

FUNCFLAG_FDEFAULTCOLLELEM FUNCFLAG_FDEFAULTCOLLELEM FUNCFLAG_FDEFAULTCOLLELEM FUNCFLAG_FDEFAULTCOLLELEM 256

允许进行一种优化,使编译器查找“abc”类型上名为“xyz”的成员。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_FDISPLAYBIND FUNCFLAG_FDISPLAYBIND FUNCFLAG_FDISPLAYBIND FUNCFLAG_FDISPLAYBIND 16

作为可绑定函数显示给用户的函数。The function that is displayed to the user as bindable. 还必须设置 FUNCFLAG_FBINDABLEFUNCFLAG_FBINDABLE must also be set.

FUNCFLAG_FHIDDEN FUNCFLAG_FHIDDEN FUNCFLAG_FHIDDEN FUNCFLAG_FHIDDEN 64

不应将此函数显示给用户,尽管它存在并且为可绑定函数。The function should not be displayed to the user, although it exists and is bindable.

FUNCFLAG_FIMMEDIATEBIND FUNCFLAG_FIMMEDIATEBIND FUNCFLAG_FIMMEDIATEBIND FUNCFLAG_FIMMEDIATEBIND 4096

作为单独的可绑定属性映射。Mapped as individual bindable properties.

FUNCFLAG_FNONBROWSABLE FUNCFLAG_FNONBROWSABLE FUNCFLAG_FNONBROWSABLE FUNCFLAG_FNONBROWSABLE 1024

该属性出现在对象浏览器而非属性浏览器中。The property appears in an object browser, but not in a properties browser.

FUNCFLAG_FREPLACEABLE FUNCFLAG_FREPLACEABLE FUNCFLAG_FREPLACEABLE FUNCFLAG_FREPLACEABLE 2048

将该接口标记为具有默认行为。Tags the interface as having default behaviors.

FUNCFLAG_FREQUESTEDIT FUNCFLAG_FREQUESTEDIT FUNCFLAG_FREQUESTEDIT FUNCFLAG_FREQUESTEDIT 8

设置后,任何对设置此属性的方法的调用都首先导致对 IPropertyNotifySink::OnRequestEdit 的调用。When set, any call to a method that sets the property results first in a call to IPropertyNotifySink::OnRequestEdit. OnRequestEdit 的实现确定是否允许该调用设置属性。The implementation of OnRequestEdit determines if the call is allowed to set the property.

FUNCFLAG_FRESTRICTED FUNCFLAG_FRESTRICTED FUNCFLAG_FRESTRICTED 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 FUNCFLAG_FSOURCE FUNCFLAG_FSOURCE FUNCFLAG_FSOURCE 2

该函数返回一个对象,此对象为事件的源。The function returns an object that is a source of events.

FUNCFLAG_FUIDEFAULT FUNCFLAG_FUIDEFAULT FUNCFLAG_FUIDEFAULT FUNCFLAG_FUIDEFAULT 512

类型信息成员是在用户界面中显示的默认成员。The type information member is the default member for display in the user interface.

FUNCFLAG_FUSESGETLASTERROR FUNCFLAG_FUSESGETLASTERROR FUNCFLAG_FUSESGETLASTERROR FUNCFLAG_FUSESGETLASTERROR 128

该函数支持 GetLastErrorThe function supports GetLastError. 如果在函数过程中发生错误,则调用方可以调用 GetLastError 来检索错误代码。If an error occurs during the function, the caller can call GetLastError to retrieve the error code.

注解

有关其他信息FUNCFLAGS,请参阅 MSDN 库。For additional information about FUNCFLAGS, see the MSDN Library.

在本机代码中的 COM 方法将返回的 HRESULT 时,公共语言运行时将引发异常。The common language runtime throws an exception when a COM method in native code returns an HRESULT. 有关更多信息,请参见 How to: Map HRESULTs and ExceptionsFor more information, see How to: Map HRESULTs and Exceptions.

适用于