This documentation is archived and is not being maintained.

TypeBuilder.GetPropertyImpl Method

.NET Framework 1.1

Searches for the specified property whose parameters match the specified argument types and modifiers, using the specified binding constraints.

[Visual Basic]
Overrides Protected Function GetPropertyImpl( _
   ByVal name As String, _
   ByVal bindingAttr As BindingFlags, _
   ByVal binder As Binder, _
   ByVal returnType As Type, _
   ByVal types() As Type, _
   ByVal modifiers() As ParameterModifier _
) As PropertyInfo
protected override PropertyInfo GetPropertyImpl(
 string name,
 BindingFlags bindingAttr,
 Binder binder,
 Type returnType,
 Type[] types,
 ParameterModifier[] modifiers
protected: PropertyInfo* GetPropertyImpl(
 String* name,
 BindingFlags bindingAttr,
 Binder* binder,
 Type* returnType,
 Type* types[],
 ParameterModifier modifiers[]
protected override function GetPropertyImpl(
   name : String,
 bindingAttr : BindingFlags,
 binder : Binder,
 returnType : Type,
 types : Type[],
 modifiers : ParameterModifier[]
) : PropertyInfo;


The String containing the name of the property to get.
A bitmask comprised of one or more BindingFlags that specify how the search is conducted.


Zero, to conduct a case-sensitive search for public properties.

A Binder object that defines a set of properties and enables binding, which can involve selection of an overloaded member, coercion of argument types, and invocation of a member through reflection.


A null reference (Nothing in Visual Basic), to use the DefaultBinder.

The return type of the property.
An array of Type objects representing the number, order, and type of the parameters for the indexed property to get.


An empty array of the type Type (that is, Type[] types = new Type[0]) to get a property that is not indexed.

An array of ParameterModifier objects representing the attributes associated with the corresponding element in the types array.

Return Value

A PropertyInfo object representing the property that matches the specified requirements, if found; otherwise, a null reference (Nothing in Visual Basic).


Exception Type Condition
NotSupportedException This method is not implemented for incomplete types.


Retrieve the type using GetType or GetType and use reflection on the retrieved type.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

TypeBuilder Class | TypeBuilder Members | System.Reflection.Emit Namespace