Core.CLIEventAttribute 类 (F#)
如果将此特性添加到含有事件类型的属性,该属性将作为 Common Language Infrastructure (CLI) 元数据事件进行编译,编译方法是在语法上转换为 add_EventName 和 remove_EventName 方法对。
命名空间/模块路径:Microsoft.FSharp.Core
程序集:FSharp.Core(在 FSharp.Core.dll 中)
[<AttributeUsage(AttributeTargets.Property, AllowMultiple = false)>]
[<Sealed>]
type CLIEventAttribute =
class
new CLIEventAttribute : unit -> CLIEventAttribute
end
备注
也可以使用名称的缩写形式 CLIEvent。
构造函数
成员 |
说明 |
---|---|
创建特性的实例 |
平台
Windows 8,Windows 7,Windows server 2012中,Windows server 2008 R2
版本信息
F#核心库版本
支持:2.0,4.0,可移植后,可移植