System.NonSerializedAttribute Class
This attribute is applied to fields in types that should not be serialized.

See Also: NonSerializedAttribute Members

Syntax

[System.AttributeUsage(System.AttributeTargets.Field, Inherited=false)]
[System.Runtime.InteropServices.ComVisible(true)]
public sealed class NonSerializedAttribute : Attribute

Remarks

For examples of the use of this attribute, see

Requirements

Namespace: System
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0