NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

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

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

[Visual Basic]
Overloads Function GetProperty( _
   ByVal name As String, _
   ByVal bindingAttr As BindingFlags, _
   ByVal binder As Binder, _
   ByVal types() As Type, _
   ByVal modifiers() As ParameterModifier _
) As PropertyInfo
[C#]
PropertyInfo GetProperty(
   string name,
   BindingFlags bindingAttr,
   Binder binder,
   Type[] types,
   ParameterModifier[] modifiers
);
[C++]
PropertyInfo* GetProperty(
   String* name,
   BindingFlags bindingAttr,
   Binder* binder,
   Type* types[],
   ParameterModifier* modifiers[]
) = 0;
[JScript]
function GetProperty(
   name : String,
   bindingAttr : BindingFlags,
   binder : Binder,
   types : Type[],
   modifiers : ParameterModifier[]
) : PropertyInfo;

Parameters

name
The name of the member to find.
bindingAttr
The binding attributes help control the search.
binder
An object which implements Binder, containing properties related to this method.
types
This array is used to choose among overloaded methods with the same name.
modifiers
This array is used choose the modifiers.

Return Value

Value Condition
A PropertyInfo object for the located property. A property with the given name was located in this reflection object.
null The property was not located.

Remarks

The GetProperty method retrieves a PropertyInfo object corresponding to a specified property under specified search constraints. A type array is used to choose among overloaded methods with the same name.

An example of a binding attribute value is IgnoreCase.

See Also

IReflect Interface | IReflect Members | System.Reflection Namespace | IReflect.GetProperty Overload List | ParameterModifier | Type | Binder | String | BindingFlags