DataViewBrowseObject.IReflect.GetField Method
Retrieves the field that matches the specified binding constraints for the type of the current instance.
Namespace: Microsoft.VisualStudio.Data.Framework
Assembly: Microsoft.VisualStudio.Data.Framework (in Microsoft.VisualStudio.Data.Framework.dll)
Syntax
'Declaration
Private Function GetField ( _
name As String, _
bindingAttr As BindingFlags _
) As FieldInfo Implements IReflect.GetField
FieldInfo IReflect.GetField(
string name,
BindingFlags bindingAttr
)
private:
virtual FieldInfo^ GetField(
String^ name,
BindingFlags bindingAttr
) sealed = IReflect::GetField
private abstract GetField :
name:string *
bindingAttr:BindingFlags -> FieldInfo
private override GetField :
name:string *
bindingAttr:BindingFlags -> FieldInfo
JScript does not support explicit interface implementations.
Parameters
name
Type: System.StringThe name of the data field to get
bindingAttr
Type: System.Reflection.BindingFlagsA bitmask made up of one or more BindingFlags that specify how the search is conducted, or zero to return nulla null reference (Nothing in Visual Basic).
Return Value
Type: System.Reflection.FieldInfo
A FieldInfo object representing the field that matches the specified binding constraints for the type of the current instance, if found; otherwise returns nulla null reference (Nothing in Visual Basic).
Implements
IReflect.GetField(String, BindingFlags)
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.