C#/XAML for HTML5 Documentation
C#/XAML for HTML5 Documentation
Reference
System
Type Class
Type Methods
GetField Method
GetField Method (String)
GetField Method (String, BindingFlags)
Type
GetField Method (String)
Searches for the public field with the specified name.
Namespace:
System
Assembly:
mscorlib (in mscorlib.dll) Version: 4.0.0.0
Syntax
C#
Copy
public
FieldInfo
GetField
(
string
name
)
Parameters
name
Type:
System
String
The string containing the name of the data field to get.
Return Value
Type:
FieldInfo
An object representing the public field with the specified name, if found; otherwise, null.
Exceptions
Exception
Condition
ArgumentNullException
name
is null.
NotSupportedException
This
Type
object is a
TypeBuilder
whose
CreateType
method has not yet been called.
See Also
Reference
Type Class
GetField Overload
System Namespace