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!

Binder.BindToField

When implemented by a subclass, this method selects a field from the given set of fields, based on the specified criteria.

[Visual Basic]
MustOverride Public Function BindToField( _
   ByVal bindingAttr As BindingFlags, _
   ByVal match() As FieldInfo, _
   ByVal value As Object, _
   ByVal culture As CultureInfo _
) As FieldInfo
[C#]
public abstract FieldInfo BindToField(
   BindingFlags bindingAttr,
   FieldInfo[] match,
   object value,
   CultureInfo culture
);
[C++]
public: virtual FieldInfo* BindToField(
   BindingFlags bindingAttr,
   FieldInfo* match[],
   Object* value,
   CultureInfo* culture
) = 0;
[JScript]
public abstract function BindToField(
   bindingAttr : BindingFlags,
   match : FieldInfo[],
   value : Object,
   culture : CultureInfo
) : FieldInfo;

Parameters

bindingAttr
[To be supplied.]
match
The set of fields to locate a matching field.
value
The field value used to locate a matching field.
culture
An instance of CultureInfo used to control the coercion of data types.'> If this is null, the CultureInfo for the current thread is used. (Note that this is necessary to, for example, convert a String that represents 1000 to a Double value, since 1000 is represented differently by different cultures.) Not Yet Implemented

Return Value

Returns a FieldInfo object containing the matching field.

Remarks

This method controls the binding provided by Type.InvokeMember().

See Also

Binder Class | Binder Members | System.Reflection Namespace | FieldInfo