TypeExtensions.GetProperty Methode
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
GetProperty(Type, String) | |
GetProperty(Type, String, BindingFlags) | |
GetProperty(Type, String, Type) | |
GetProperty(Type, String, Type, Type[]) |
- Quelle:
- TypeExtensions.cs
- Quelle:
- TypeExtensions.cs
- Quelle:
- TypeExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name);
C#
public static System.Reflection.PropertyInfo GetProperty(this Type type, string name);
C#
public static System.Reflection.PropertyInfo? GetProperty(this Type type, string name);
static member GetProperty : Type * string -> System.Reflection.PropertyInfo
<Extension()>
Public Function GetProperty (type As Type, name As String) As PropertyInfo
Parameter
- type
- Type
- name
- String
Gibt zurück
Gilt für:
.NET 10 und andere Versionen
Produkt | Versionen |
---|---|
.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 |
- Quelle:
- TypeExtensions.cs
- Quelle:
- TypeExtensions.cs
- Quelle:
- TypeExtensions.cs
public:
static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name, System::Reflection::BindingFlags bindingAttr);
C#
public static System.Reflection.PropertyInfo GetProperty(Type type, string name, System.Reflection.BindingFlags bindingAttr);
static member GetProperty : Type * string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
Public Shared Function GetProperty (type As Type, name As String, bindingAttr As BindingFlags) As PropertyInfo
Parameter
- type
- Type
- name
- String
- bindingAttr
- BindingFlags
Gibt zurück
Gilt für:
.NET 10 und andere Versionen
Produkt | Versionen |
---|---|
.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 |
- Quelle:
- TypeExtensions.cs
- Quelle:
- TypeExtensions.cs
- Quelle:
- TypeExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name, Type ^ returnType);
C#
public static System.Reflection.PropertyInfo GetProperty(this Type type, string name, Type returnType);
C#
public static System.Reflection.PropertyInfo? GetProperty(this Type type, string name, Type? returnType);
static member GetProperty : Type * string * Type -> System.Reflection.PropertyInfo
<Extension()>
Public Function GetProperty (type As Type, name As String, returnType As Type) As PropertyInfo
Parameter
- type
- Type
- name
- String
- returnType
- Type
Gibt zurück
Gilt für:
.NET 10 und andere Versionen
Produkt | Versionen |
---|---|
.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 |
- Quelle:
- TypeExtensions.cs
- Quelle:
- TypeExtensions.cs
- Quelle:
- TypeExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name, Type ^ returnType, cli::array <Type ^> ^ types);
C#
public static System.Reflection.PropertyInfo GetProperty(this Type type, string name, Type returnType, Type[] types);
C#
public static System.Reflection.PropertyInfo? GetProperty(this Type type, string name, Type? returnType, Type[] types);
static member GetProperty : Type * string * Type * Type[] -> System.Reflection.PropertyInfo
<Extension()>
Public Function GetProperty (type As Type, name As String, returnType As Type, types As Type()) As PropertyInfo
Parameter
- type
- Type
- name
- String
- returnType
- Type
- types
- Type[]
Gibt zurück
Gilt für:
.NET 10 und andere Versionen
Produkt | Versionen |
---|---|
.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 |
Arbeiten Sie mit uns auf GitHub zusammen
Die Quelle für diesen Inhalt finden Sie auf GitHub, wo Sie auch Issues und Pull Requests erstellen und überprüfen können. Weitere Informationen finden Sie in unserem Leitfaden für Mitwirkende.
Feedback zu .NET
.NET ist ein Open Source-Projekt. Wählen Sie einen Link aus, um Feedback zu geben: