Method GetField
- Namespace
- Microsoft.Samples.Debugging.CorMetadata
- Assembly
- corapi.dll
GetField(string, BindingFlags)
Searches for the specified field, using the specified binding constraints.
public override FieldInfo GetField(string name, BindingFlags bindingAttr)
Parameters
name
stringThe string containing the name of the data field to get.
bindingAttr
BindingFlagsA bitmask comprised of one or more BindingFlags that specify how the search is conducted.-or- Zero, to return null.
Returns
- FieldInfo
An object representing the field that matches the specified requirements, if found; otherwise, null.
Exceptions
- ArgumentNullException
name
is null.