Export (0) Print
Expand All

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.PropertyInfo
A 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[])

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8.1, Windows Server 2012 R2, 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.

Show:
© 2014 Microsoft