TypeInfo.GetProperty Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
GetProperty(String) | |
GetProperty(String, BindingFlags) | |
GetProperty(String, Type) | |
GetProperty(String, Type[]) | |
GetProperty(String, Type, Type[]) | |
GetProperty(String, Type, Type[], ParameterModifier[]) |
public:
System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name);
C#
public System.Reflection.PropertyInfo GetProperty(string name);
member this.GetProperty : string -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String) As PropertyInfo
Parameters
- name
- String
Returns
Applies to
.NET Core 1.1 a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.5, 1.6 |
public:
System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
C#
public System.Reflection.PropertyInfo GetProperty(string name, System.Reflection.BindingFlags bindingAttr);
member this.GetProperty : string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, bindingAttr As BindingFlags) As PropertyInfo
Parameters
- name
- String
- bindingAttr
- BindingFlags
Returns
Applies to
.NET Core 1.1 a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.5, 1.6 |
public:
System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, Type ^ returnType);
C#
public System.Reflection.PropertyInfo GetProperty(string name, Type returnType);
member this.GetProperty : string * Type -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, returnType As Type) As PropertyInfo
Parameters
- name
- String
- returnType
- Type
Returns
Applies to
.NET Core 1.1 a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.5, 1.6 |
public:
System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, cli::array <Type ^> ^ types);
C#
public System.Reflection.PropertyInfo GetProperty(string name, Type[] types);
member this.GetProperty : string * Type[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, types As Type()) As PropertyInfo
Parameters
- name
- String
- types
- Type[]
Returns
Applies to
.NET Core 1.1 a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.5, 1.6 |
public:
System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, Type ^ returnType, cli::array <Type ^> ^ types);
C#
public System.Reflection.PropertyInfo GetProperty(string name, Type returnType, Type[] types);
member this.GetProperty : string * Type * Type[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, returnType As Type, types As Type()) As PropertyInfo
Parameters
- name
- String
- returnType
- Type
- types
- Type[]
Returns
Applies to
.NET Core 1.1 a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.5, 1.6 |
public:
System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, Type ^ returnType, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
C#
public System.Reflection.PropertyInfo GetProperty(string name, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);
member this.GetProperty : string * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, returnType As Type, types As Type(), modifiers As ParameterModifier()) As PropertyInfo
Parameters
- name
- String
- returnType
- Type
- types
- Type[]
- modifiers
- ParameterModifier[]
Returns
Applies to
.NET Core 1.1 a ďalšie verzie
Produkt | Verzie |
---|---|
.NET | Core 1.0, Core 1.1 |
.NET Standard | 1.5, 1.6 |
Spolupráca s nami v službe GitHub
Zdroj tohto obsahu nájdete v službe GitHub, kde môžete vytvárať a skúmať problémy a žiadosti o prijatie zmien. Ďalšie informácie nájdete v našom sprievodcovi prispievateľom.
Pripomienky k produktu .NET
.NET je open-source projekt. Ak chcete poskytnúť pripomienky, vyberte prepojenie: