MethodSemanticsAttributes MethodSemanticsAttributes MethodSemanticsAttributes MethodSemanticsAttributes Enum

定义

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

字段

Adder Adder Adder Adder 8

用于为事件添加处理程序。Used to add a handler for an event. 对应于 Ecma 335 CLI 规范中的 AddOn 标记。Corresponds to the AddOn flag in the Ecma 335 CLI specification.

符合 CLS 的 adder 命名时采用前缀 add_CLS-compliant adders are named the with add_ prefix.

Getter Getter Getter Getter 2

读取属性的值。Reads the value of the property.

符合 CLS 的 getter 命名时采用前缀 `get_`。CLS-compliant getters are named with `get_` prefix.

Other Other Other Other 4

属性的其他方法(非 getter 或 setter)或事件(非 adder、remover 或 raiser)。Other method for a property (not a getter or setter) or an event (not an adder, remover, or raiser).

Raiser Raiser Raiser Raiser 32

用于指示事件已发生。Used to indicate that an event has occurred. 对应于 Ecma 335 CLI 规范中的 Fire 标记。Corresponds to the Fire flag in the Ecma 335 CLI specification.

符合 CLS 的 raiser 命名时采用前缀 raise_CLS-compliant raisers are named with the raise_ prefix.

Remover Remover Remover Remover 16

用于为事件移除处理程序。Used to remove a handler for an event. 对应于 Ecma 335 CLI 规范中的 RemoveOn 标记。Corresponds to the RemoveOn flag in the Ecma 335 CLI specification.

符合 CLS 的 remover 命名时采用前缀 remove_CLS-compliant removers are named with the remove_ prefix.

Setter Setter Setter Setter 1

用于修改属性的值。Used to modify the value of the property.

符合 CLS 的 setter 命名时采用前缀 set_CLS-compliant setters are named with the set_ prefix.

适用于