SemanticModel.IsEventUsableAsFieldCore(Int32, IEventSymbol) 方法

定义

类似字段的事件可用作可访问事件声明类型的私有成员的类型中的字段。

protected:
 abstract bool IsEventUsableAsFieldCore(int position, Microsoft::CodeAnalysis::IEventSymbol ^ eventSymbol);
protected abstract bool IsEventUsableAsFieldCore (int position, Microsoft.CodeAnalysis.IEventSymbol eventSymbol);
abstract member IsEventUsableAsFieldCore : int * Microsoft.CodeAnalysis.IEventSymbol -> bool
Protected MustOverride Function IsEventUsableAsFieldCore (position As Integer, eventSymbol As IEventSymbol) As Boolean

参数

position
Int32
eventSymbol
IEventSymbol

返回

注解

对于 VB 事件,始终为 false。

适用于