Module::GetField Method (String^)

 

Returns a field having the specified name.

Namespace:   System.Reflection
Assembly:  mscorlib (in mscorlib.dll)

public:
FieldInfo^ GetField(
	String^ name
)

Parameters

name
Type: System::String^

The field name.

Return Value

Type: System.Reflection::FieldInfo^

A FieldInfo object having the specified name, or null if the field does not exist.

Exception Condition
ArgumentNullException

The name parameter is null.

.NET Framework
Available since 1.1
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Return to top
Show: