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 that corresponds 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
Not applicable.

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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

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

Community Additions

Show:
© 2014 Microsoft