﻿<?xml version="1.0" encoding="utf-8"?><Type Name="OptionalFieldAttribute" FullName="System.Runtime.Serialization.OptionalFieldAttribute"><TypeSignature Language="C#" Value="public sealed class OptionalFieldAttribute : Attribute" /><TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit OptionalFieldAttribute extends System.Attribute" /><AssemblyInfo><AssemblyName>mscorlib</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Attribute</BaseTypeName></Base><Interfaces /><Attributes><Attribute><AttributeName>System.AttributeUsage(System.AttributeTargets.Field, Inherited=false)</AttributeName></Attribute><Attribute><AttributeName>System.Runtime.InteropServices.ComVisible(true)</AttributeName></Attribute></Attributes><Docs><since version=".NET 2.0" /><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This attribute allows you to specify that new fields in a serializable type (a type to which the <see cref="T:System.SerializableAttribute" /> is applied to) are ignored by the <see cref="T:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter" /> or the <see cref="T:System.Runtime.Serialization.Formatters.Soap.SoapFormatter" />. This enables version-tolerant serialization of types created for older versions of an application that serializes data. For example, when the formatters encounter a stream produced by a version that does not include the new fields, no exception is thrown, and the existing data on the older type is processed as normal.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Specifies that a field can be missing from a serialization stream so that the <see cref="T:System.Runtime.Serialization.Formatters.Binary.BinaryFormatter" /> and the <see cref="T:System.Runtime.Serialization.Formatters.Soap.SoapFormatter" /> does not throw an exception. </para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public OptionalFieldAttribute ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters /><Docs><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Runtime.Serialization.OptionalFieldAttribute" /> class. </para></summary></Docs></Member><Member MemberName="VersionAdded"><MemberSignature Language="C#" Value="public int VersionAdded { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance int32 VersionAdded" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Int32</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><since version=".NET 2.0" /><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>This property is unused and is reserved.</para></summary></Docs></Member></Members></Type>