[]
Searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.
public static PropertyInfo GetProperty(Type type, string name, BindingFlags bindingFlags, Type returnType, Type[] paramTypes)
Type | Name | Description |
---|---|---|
Type | type | Represents type declarations: class types, interface types, array types, value types, enumeration types, type parameters, generic type definitions, and open or closed constructed generic types. |
string | name | he string containing the name of the property to get. |
BindingFlags | bindingFlags | A bit-mask comprised of one or more System.Reflection.BindingFlags that specify how the search is conducted. -or- Zero, to return null. |
Type | returnType | |
Type[] | paramTypes | An array of System.Type objects representing the number, order, and type of the parameters for the method to get. -or- An empty array of System.Type objects (as provided by the System.Type.EmptyTypes field) to get a method that takes no parameters. |
Type | Description |
---|---|
PropertyInfo | An object representing the property that matches the specified requirements, if found; otherwise, null. |