ScriptObject.GetProperty Method (String, BindingFlags, Binder, Type, Type[], ParameterModifier[])
This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.
Gets a property that has the specified name by using the specified selection criteria.
Namespace: Microsoft.JScript
Assembly: Microsoft.JScript (in Microsoft.JScript.dll)
public PropertyInfo GetProperty( string name, BindingFlags bindingAttr, Binder binder, Type returnType, Type[] types, ParameterModifier[] modifiers )
Parameters
- name
- Type: System.String
The name of the property to search for.
- bindingAttr
- Type: System.Reflection.BindingFlags
A bitwise combination of the enumeration values that specifies how the search for members is conducted by reflection.
- binder
- Type: System.Reflection.Binder
An object that performs type conversion from actual argument type to formal argument type.
- returnType
- Type: System.Type
The type of the return value that the property must have.
- types
- Type: System.Type[]
The index types of the property being searched for. Used for index properties, such as the indexer for a class.
- modifiers
- Type: System.Reflection.ParameterModifier[]
An array of parameter modifiers that enable binding to work with parameter signatures in which the types have been modified.
Return Value
Type: System.Reflection.PropertyInfoA property that has the specified name, or null if the script object does not contain the property.
Implements
IReflect.GetProperty(String, BindingFlags, Binder, Type, Type[], ParameterModifier[])Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.