﻿<?xml version="1.0" encoding="utf-8"?><Type Name="XDeclaration" FullName="System.Xml.Linq.XDeclaration"><TypeSignature Language="C#" Value="public class XDeclaration" /><TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit XDeclaration extends System.Object" /><AssemblyInfo><AssemblyName>System.Xml.Linq</AssemblyName><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Object</BaseTypeName></Base><Interfaces /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>An XML declaration is used to declare the XML version, the encoding, and whether or not the XML document is standalone. This class represents the XML concept of an XML declaration. </para><para>Just as in the XML standard, declarations are associated with a document. When you create a document, you have the option to specify the declaration for the document. The <see cref="T:System.Xml.Linq.XDocument" /> class contains the <see cref="P:System.Xml.Linq.XDocument.Declaration" /> property, which allows you to set or get the declaration. For information about how to serialize an XML tree with an XML declaration, see <format type="text/html"><a href="30f1b564-62b5-4e5d-9c36-884e51113feb">Saving With an XML Declaration</a></format>. </para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents an XML declaration.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public XDeclaration (System.Xml.Linq.XDeclaration other);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class System.Xml.Linq.XDeclaration other) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="other" Type="System.Xml.Linq.XDeclaration" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>This constructor is primarily used internally to make a deep copy of an XML tree.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Xml.Linq.XDeclaration" /> class from another <see cref="T:System.Xml.Linq.XDeclaration" /> object. </para></summary><param name="other"><attribution license="cc4" from="Microsoft" modified="false" />The <see cref="T:System.Xml.Linq.XDeclaration" /> used to initialize this <see cref="T:System.Xml.Linq.XDeclaration" /> object.</param></Docs></Member><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public XDeclaration (string version, string encoding, string standalone);" /><MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(string version, string encoding, string standalone) cil managed" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="version" Type="System.String" /><Parameter Name="encoding" Type="System.String" /><Parameter Name="standalone" Type="System.String" /></Parameters><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Xml.Linq.XDeclaration" /> class with the specified version, encoding, and standalone status.</para></summary><param name="version"><attribution license="cc4" from="Microsoft" modified="false" />The version of the XML, usually "1.0".</param><param name="encoding"><attribution license="cc4" from="Microsoft" modified="false" />The encoding for the XML document.</param><param name="standalone"><attribution license="cc4" from="Microsoft" modified="false" />A string containing "yes" or "no" that specifies whether the XML is standalone or requires external entities to be resolved.</param></Docs></Member><Member MemberName="Encoding"><MemberSignature Language="C#" Value="public string Encoding { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance string Encoding" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Any value returned by <see cref="P:System.Text.Encoding.WebName" /> is a valid value.</para><para>If you read an encoded document, then this property will be set to the code page name.</para><para>If you set this property to a valid code page name, then when serializing, LINQ to XML will serialize with the specified encoding.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the encoding for this document.</para></summary></Docs></Member><Member MemberName="Standalone"><MemberSignature Language="C#" Value="public string Standalone { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance string Standalone" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The valid values for standalone are "yes" or "no". These values are not enforced.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the standalone property for this document.</para></summary></Docs></Member><Member MemberName="ToString"><MemberSignature Language="C#" Value="public override string ToString ();" /><MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance string ToString() cil managed" /><MemberType>Method</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Parameters /><Docs><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Provides the declaration as a formatted string.</para></summary><returns><attribution license="cc4" from="Microsoft" modified="false" /><para>A <see cref="T:System.String" /> that contains the formatted XML string.</para></returns></Docs></Member><Member MemberName="Version"><MemberSignature Language="C#" Value="public string Version { get; set; }" /><MemberSignature Language="ILAsm" Value=".property instance string Version" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>4.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The value is usually "1.0". This value is not enforced.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets or sets the version property for this document.</para></summary></Docs></Member></Members></Type>