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.GetField

Retrieves the FieldInfo object corresponding to a specified field.

[Visual Basic]
Function GetField( _
   ByVal name As String, _
   ByVal bindingAttr As BindingFlags _
) As FieldInfo
[C#]
FieldInfo GetField(
   string name,
   BindingFlags bindingAttr
);
[C++]
FieldInfo* GetField(
   String* name,
   BindingFlags bindingAttr
) = 0;
[JScript]
function GetField(
   name : String,
   bindingAttr : BindingFlags
) : FieldInfo;

Parameters

name
The name of the field to find.
bindingAttr
The binding attributes used to control the search.

Return Value

A FieldInfo object containing the field information for the named object.

Exceptions

Exception Type Condition
AmbiguousMatchException if the object implements multiple fields with the same name.

Remarks

The GetField method retrieves the FieldInfo object using the name and binding attributes parameters. The match is based upon the name of the field.

An example of a binding attribute value is IgnoreCase.

See Also

IReflect Interface | IReflect Members | System.Reflection Namespace | String | BindingFlags