TypeInfo.GetDeclaredField Method
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Returns an object that represents the specified public field declared by the current type.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- name
- Type: System.String
The name of the field.
Return Value
Type: System.Reflection.FieldInfoAn object that represents the specified field, if found; otherwise, Nothing.
| Exception | Condition |
|---|---|
| ArgumentNullException | name is Nothing. |
Show: