Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IReflect.GetProperty Method (String, BindingFlags, Binder, Type, Type[], ParameterModifier[])

Retrieves a PropertyInfo object corresponding to a specified property with specified search constraints.

Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)

PropertyInfo GetProperty (
	string name,
	BindingFlags bindingAttr,
	Binder binder,
	Type returnType,
	Type[] types,
	ParameterModifier[] modifiers
)
PropertyInfo GetProperty (
	String name, 
	BindingFlags bindingAttr, 
	Binder binder, 
	Type returnType, 
	Type[] types, 
	ParameterModifier[] modifiers
)
function GetProperty (
	name : String, 
	bindingAttr : BindingFlags, 
	binder : Binder, 
	returnType : Type, 
	types : Type[], 
	modifiers : ParameterModifier[]
) : PropertyInfo

Parameters

name

The name of the member to find.

bindingAttr

The binding attribute used to control the search.

binder

An object that implements Binder, containing properties related to this method.

returnType

The type of the property.

types

An array used to choose among overloaded methods with the same name.

modifiers

An array used to choose the parameter modifiers.

Return Value

A PropertyInfo object for the located property, if a property with the specified name was located in this reflection object, or a null reference (Nothing in Visual Basic) if the property was not located.

This method retrieves a PropertyInfo object corresponding to a specified property under specified search constraints. A type array is used to choose from among overloaded methods.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft