FieldInfo.IsNotSerialized Property

Gets a value that indicates whether this field has the NotSerialized attribute.

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

public bool IsNotSerialized { get; }

Property Value

Type: System.Boolean
true if the field has the NotSerialized attribute set; otherwise, false.


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.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

© 2015 Microsoft