TypeExtensions.GetProperties 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::PropertyInfo ^> ^ GetProperties(Type ^ type);
C#
public static System.Reflection.PropertyInfo[] GetProperties(this Type type);
static member GetProperties : Type -> System.Reflection.PropertyInfo[]
<Extension()>
Public Function GetProperties (type As Type) As PropertyInfo()
Paramètres
- type
- Type
Retours
S’applique à
.NET 9 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 |
.NET Framework | 4.7.2 (package-provided), 4.8 (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::PropertyInfo ^> ^ GetProperties(Type ^ type, System::Reflection::BindingFlags bindingAttr);
C#
public static System.Reflection.PropertyInfo[] GetProperties(Type type, System.Reflection.BindingFlags bindingAttr);
static member GetProperties : Type * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo[]
Public Shared Function GetProperties (type As Type, bindingAttr As BindingFlags) As PropertyInfo()
Paramètres
- type
- Type
- bindingAttr
- BindingFlags
Retours
S’applique à
.NET 9 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 |
.NET Framework | 4.7.2 (package-provided), 4.8 (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. 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 :