TypeExtensions.GetEvent Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
public:
static System::Reflection::EventInfo ^ GetEvent(Type ^ type, System::String ^ name);
C#
public static System.Reflection.EventInfo GetEvent(Type type, string name);
static member GetEvent : Type * string -> System.Reflection.EventInfo
Public Shared Function GetEvent (type As Type, name As String) As EventInfo
Paramètres
- type
- Type
- name
- String
Retours
S’applique à
.NET 10 et autres versions
Produit | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.7.2 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
- Source:
- TypeExtensions.cs
public:
static System::Reflection::EventInfo ^ GetEvent(Type ^ type, System::String ^ name, System::Reflection::BindingFlags bindingAttr);
C#
public static System.Reflection.EventInfo GetEvent(Type type, string name, System.Reflection.BindingFlags bindingAttr);
static member GetEvent : Type * string * System.Reflection.BindingFlags -> System.Reflection.EventInfo
Public Shared Function GetEvent (type As Type, name As String, bindingAttr As BindingFlags) As EventInfo
Paramètres
- type
- Type
- name
- String
- bindingAttr
- BindingFlags
Retours
S’applique à
.NET 10 et autres versions
Produit | Versions |
---|---|
.NET | Core 1.0, Core 1.1, Core 2.0, Core 2.1, Core 2.2, Core 3.0, Core 3.1, 5, 6, 7, 8, 9, 10 |
.NET Framework | 4.7.2 (package-provided) |
.NET Standard | 2.0 (package-provided) |
UWP | 10.0 |
Collaborer avec nous sur GitHub
La source de ce contenu se trouve sur GitHub, où vous pouvez également créer et examiner les problèmes et les demandes de tirage (pull requests). Pour plus d’informations, consultez notre guide du contributeur.
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires: