This documentation is archived and is not being maintained.

FieldInfo.IsNotSerialized Property

Gets a value indicating whether this field has the NotSerialized attribute.

[Visual Basic]
Public ReadOnly Property IsNotSerialized As Boolean
public bool IsNotSerialized {get;}
public: __property bool get_IsNotSerialized();
public function get IsNotSerialized() : Boolean;

Property Value

true if the field has the NotSerialized attribute set; otherwise, false.


The IsNotSerialized property returns true when the field is marked with the FieldAttributes.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.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

FieldInfo Class | FieldInfo Members | System.Reflection Namespace | FieldAttributes