TypeExtensions.GetProperty Yöntem
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
GetProperty(Type, String) | |
GetProperty(Type, String, BindingFlags) | |
GetProperty(Type, String, Type) | |
GetProperty(Type, String, Type, Type[]) |
- Kaynak:
- TypeExtensions.cs
- Kaynak:
- TypeExtensions.cs
- Kaynak:
- 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
Parametreler
- type
- Type
- name
- String
Döndürülenler
Şunlara uygulanır
.NET 10 ve diğer sürümler
Ürün | Sürümler |
---|---|
.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 |
- Kaynak:
- TypeExtensions.cs
- Kaynak:
- TypeExtensions.cs
- Kaynak:
- 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
Parametreler
- type
- Type
- name
- String
- bindingAttr
- BindingFlags
Döndürülenler
Şunlara uygulanır
.NET 10 ve diğer sürümler
Ürün | Sürümler |
---|---|
.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 |
- Kaynak:
- TypeExtensions.cs
- Kaynak:
- TypeExtensions.cs
- Kaynak:
- 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
Parametreler
- type
- Type
- name
- String
- returnType
- Type
Döndürülenler
Şunlara uygulanır
.NET 10 ve diğer sürümler
Ürün | Sürümler |
---|---|
.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 |
- Kaynak:
- TypeExtensions.cs
- Kaynak:
- TypeExtensions.cs
- Kaynak:
- 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
Parametreler
- type
- Type
- name
- String
- returnType
- Type
- types
- Type[]
Döndürülenler
Şunlara uygulanır
.NET 10 ve diğer sürümler
Ürün | Sürümler |
---|---|
.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 |
GitHub'da bizimle işbirliği yapın
Bu içeriğin kaynağı GitHub'da bulunabilir; burada ayrıca sorunları ve çekme isteklerini oluşturup gözden geçirebilirsiniz. Daha fazla bilgi için katkıda bulunan kılavuzumuzu inceleyin.
.NET geri bildirimi
.NET, açık kaynak bir projedir. Geri bildirim sağlamak için bir bağlantı seçin: