FieldInfo.IsNotSerialized Property
[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]
Gets a value that indicates whether this field has the NotSerialized attribute.
Assembly: mscorlib (in mscorlib.dll)
Property Value
Type: System.Booleantrue if the field has the NotSerialized attribute set; otherwise, false.
| Exception | Condition |
|---|---|
| MethodAccessException | This member is invoked late-bound through mechanisms such as Type.InvokeMember. |
The IsNotSerialized property returns true when the field is marked with the NotSerialized flag. When this flag is set on a field, it indicates that the field does not have to be serialized when the type is remoted.