Share via


DataViewBrowseObject.IReflect.GetField(String, BindingFlags) Method

Definition

Retrieves the field that matches the specified binding constraints for the type of the current instance.

 virtual System::Reflection::FieldInfo ^ System.Reflection.IReflect.GetField(System::String ^ name, System::Reflection::BindingFlags bindingAttr) = System::Reflection::IReflect::GetField;
System.Reflection.FieldInfo IReflect.GetField (string name, System.Reflection.BindingFlags bindingAttr);
abstract member System.Reflection.IReflect.GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
override this.System.Reflection.IReflect.GetField : string * System.Reflection.BindingFlags -> System.Reflection.FieldInfo
Function GetField (name As String, bindingAttr As BindingFlags) As FieldInfo Implements IReflect.GetField

Parameters

name
String

The name of the data field to get

bindingAttr
BindingFlags

A bitmask made up of one or more BindingFlags that specify how the search is conducted, or zero to return null.

Returns

A FieldInfo object representing the field that matches the specified binding constraints for the type of the current instance, if found; otherwise returns null.

Implements

Applies to