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

'宣言
Private Function GetField ( _
    name As String, _
    bindingAttr As BindingFlags _
) As FieldInfo Implements IReflect.GetField
'使用
Dim instance As DataViewBrowseObject
Dim name As String
Dim bindingAttr As BindingFlags
Dim returnValue As FieldInfo

returnValue = CType(instance, IReflect).GetField(name, _
    bindingAttr)
FieldInfo IReflect.GetField(
    string name,
    BindingFlags bindingAttr
)
private:
virtual FieldInfo^ GetField(
    String^ name, 
    BindingFlags bindingAttr
) sealed = IReflect::GetField
JScript does not support explicit interface implementations.

Parameters

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 a null reference (Nothing in Visual Basic).

Implements

IReflect.GetField(String, BindingFlags)

Permissions

See Also

Reference

DataViewBrowseObject Class

DataViewBrowseObject Members

Microsoft.VisualStudio.Data.Framework Namespace