Binder.IsEvent(CSharpBinderFlags, String, Type) Metod

Definition

Initierar en ny CSharp är händelsebindning.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

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);
[System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.")]
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
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);
[System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")]
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
[<System.Diagnostics.CodeAnalysis.RequiresDynamicCode("The 'dynamic' feature requires runtime-code generation, which is incompatible with AOT.")>]
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")>]
static member IsEvent : Microsoft.CSharp.RuntimeBinder.CSharpBinderFlags * string * Type -> System.Runtime.CompilerServices.CallSiteBinder
[<System.Diagnostics.CodeAnalysis.RequiresUnreferencedCode("Using dynamic types might cause types or members to be removed by trimmer.")>]
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

Parametrar

flags
CSharpBinderFlags

Flaggorna som pärmen ska initieras med.

name
String

Namnet på händelsen som ska sökas efter.

context
Type

Det Type anger var den här åtgärden används.

Returer

En ny CSharp är händelsebindning.

Attribut

Gäller för