共用方式為


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。

適用於