TypeExtensions.GetEvents 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:
[System::Runtime::CompilerServices::Extension]
static cli::array <System::Reflection::EventInfo ^> ^ GetEvents(Type ^ type);
C#
public static System.Reflection.EventInfo[] GetEvents(this Type type);
static member GetEvents : Type -> System.Reflection.EventInfo[]
<Extension()>
Public Function GetEvents (type As Type) As EventInfo()
Paramètres
- type
- Type
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 cli::array <System::Reflection::EventInfo ^> ^ GetEvents(Type ^ type, System::Reflection::BindingFlags bindingAttr);
C#
public static System.Reflection.EventInfo[] GetEvents(Type type, System.Reflection.BindingFlags bindingAttr);
static member GetEvents : Type * System.Reflection.BindingFlags -> System.Reflection.EventInfo[]
Public Shared Function GetEvents (type As Type, bindingAttr As BindingFlags) As EventInfo()
Paramètres
- type
- Type
- 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: