ScriptObject.GetProperty ScriptObject.GetProperty ScriptObject.GetProperty ScriptObject.GetProperty Method

Definition

Gets a property that has a specified name.

Overloads

GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

Gets a property that has the specified name by using the specified selection criteria.

GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags)

Gets a property that has the specified name.

GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[]) GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

Gets a property that has the specified name by using the specified selection criteria.

public:
 virtual System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr, System::Reflection::Binder ^ binder, Type ^ returnType, cli::array <Type ^> ^ types, cli::array <System::Reflection::ParameterModifier> ^ modifiers);
public System.Reflection.PropertyInfo GetProperty (string name, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, Type returnType, Type[] types, System.Reflection.ParameterModifier[] modifiers);
abstract member GetProperty : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo
override this.GetProperty : string * System.Reflection.BindingFlags * System.Reflection.Binder * Type * Type[] * System.Reflection.ParameterModifier[] -> System.Reflection.PropertyInfo

Parameters

name
String String String String

The name of the property to search for.

bindingAttr
BindingFlags BindingFlags BindingFlags BindingFlags

A bitwise combination of the enumeration values that specifies how the search for members is conducted by reflection.

binder
Binder Binder Binder Binder

An object that performs type conversion from actual argument type to formal argument type.

returnType
Type Type Type Type

The type of the return value that the property must have.

types
Type[]

The index types of the property being searched for. Used for index properties, such as the indexer for a class.

modifiers
ParameterModifier[]

An array of parameter modifiers that enable binding to work with parameter signatures in which the types have been modified.

Returns

A property that has the specified name, or null if the script object does not contain the property.

Implements

See also

GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags) GetProperty(String, BindingFlags)

Gets a property that has the specified name.

public:
 virtual System::Reflection::PropertyInfo ^ GetProperty(System::String ^ name, System::Reflection::BindingFlags bindingAttr);
public System.Reflection.PropertyInfo GetProperty (string name, System.Reflection.BindingFlags bindingAttr);
abstract member GetProperty : string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
override this.GetProperty : string * System.Reflection.BindingFlags -> System.Reflection.PropertyInfo
Public Function GetProperty (name As String, bindingAttr As BindingFlags) As PropertyInfo

Parameters

name
String String String String

The name of the property to get.

bindingAttr
BindingFlags BindingFlags BindingFlags BindingFlags

A bitwise combination of the enumeration values that specifies how the search for members is conducted by reflection.

Returns

A property that has the specified name, or null if the script object does not contain the property.

Implements

See also

Applies to