Table of Contents

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 string

The string containing the name of the data field to get.

bindingAttr BindingFlags

A 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.