Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Returns the FieldInfo object that corresponds to the specified field and binding flag.
Namespace: System.Reflection
Assembly: mscorlib (in mscorlib.dll)
Syntax
'Declaration
Function GetField ( _
name As String, _
bindingAttr As BindingFlags _
) As FieldInfo
FieldInfo GetField(
string name,
BindingFlags bindingAttr
)
FieldInfo^ GetField(
String^ name,
BindingFlags bindingAttr
)
abstract GetField :
name:string *
bindingAttr:BindingFlags -> FieldInfo
function GetField(
name : String,
bindingAttr : BindingFlags
) : FieldInfo
Parameters
- name
Type: System. . :: . .String
The name of the field to find.
- bindingAttr
Type: System.Reflection. . :: . .BindingFlags
The binding attributes used to control the search.
Return Value
Type: System.Reflection. . :: . .FieldInfo
A FieldInfo object containing the field information for the named object that meets the search constraints specified in bindingAttr.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see dd66cd4c-b087-415f-9c3e-94e3a1835f74.