TypeExtensions.GetProperty Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Överlagringar
| Name | Description |
|---|---|
| GetProperty(Type, String) | |
| GetProperty(Type, String, BindingFlags) | |
| GetProperty(Type, String, Type) | |
| GetProperty(Type, String, Type, Type[]) |
GetProperty(Type, String)
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name);
public static System.Reflection.PropertyInfo GetProperty(this Type type, string name);
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
Parametrar
- type
- Type
- name
- String
Returer
Gäller för
GetProperty(Type, String, BindingFlags)
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
public:
static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name, System::Reflection::BindingFlags bindingAttr);
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
Parametrar
- type
- Type
- name
- String
- bindingAttr
- BindingFlags
Returer
Gäller för
GetProperty(Type, String, Type)
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name, Type ^ returnType);
public static System.Reflection.PropertyInfo GetProperty(this Type type, string name, Type returnType);
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
Parametrar
- type
- Type
- name
- String
- returnType
- Type
Returer
Gäller för
GetProperty(Type, String, Type, Type[])
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
- Källa:
- TypeExtensions.cs
public:
[System::Runtime::CompilerServices::Extension]
static System::Reflection::PropertyInfo ^ GetProperty(Type ^ type, System::String ^ name, Type ^ returnType, cli::array <Type ^> ^ types);
public static System.Reflection.PropertyInfo GetProperty(this Type type, string name, Type returnType, Type[] types);
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
Parametrar
- type
- Type
- name
- String
- returnType
- Type
- types
- Type[]