Share via


Binder.IsEvent(CSharpBinderFlags, String, Type) 方法

定義

初始化新的 CSharp Is 事件繫結器。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

public:
 static System::Runtime::CompilerServices::CallSiteBinder ^ IsEvent(Microsoft::CSharp::RuntimeBinder::CSharpBinderFlags flags, System::String ^ name, Type ^ context);
public static System.Runtime.CompilerServices.CallSiteBinder IsEvent (Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, string name, Type context);
public static System.Runtime.CompilerServices.CallSiteBinder IsEvent (Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags flags, string name, Type? context);
static member IsEvent : Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags * string * Type -> System.Runtime.CompilerServices.CallSiteBinder
Public Shared Function IsEvent (flags As CSharpBinderFlags, name As String, context As Type) As CallSiteBinder

參數

flags
CSharpBinderFlags

用來初始化繫結器的旗標。

name
String

要尋找之事件的名稱。

context
Type

Type,指定在何處使用此作業。

傳回

新的 CSharp is 事件繫結器。

適用於