46 references to SaveOptions
System.Data.Services (2)
System\Data\Services\Parsing\WebConvert.cs (1)
691result = ((System.Xml.Linq.XElement)value).ToString(System.Xml.Linq.SaveOptions.None);
System\Data\Services\Serializers\JsonSerializer.cs (1)
323this.writer.WriteValue(((System.Xml.Linq.XElement)value).ToString(System.Xml.Linq.SaveOptions.None));
System.Data.Services.Client (1)
parent\Server\System\Data\Services\Parsing\WebConvert.cs (1)
691result = ((System.Xml.Linq.XElement)value).ToString(System.Xml.Linq.SaveOptions.None);
System.ServiceModel.Web (5)
System\ServiceModel\Dispatcher\HttpUnhandledOperationInvoker.cs (3)
55Message redirectResult = WebOperationContext.Current.CreateStreamResponse(s => HelpHtmlBuilder.CreateTransferRedirectPage(to.AbsoluteUri, newLocation.AbsoluteUri).Save(s, SaveOptions.OmitDuplicateNamespaces), Atom10Constants.HtmlMediaType); 84result = WebOperationContext.Current.CreateStreamResponse(s => HelpHtmlBuilder.CreateMethodNotAllowedPage(helpUri).Save(s, SaveOptions.OmitDuplicateNamespaces), Atom10Constants.HtmlMediaType); 88result = WebOperationContext.Current.CreateStreamResponse(s => HelpHtmlBuilder.CreateEndpointNotFound(helpUri).Save(s, SaveOptions.OmitDuplicateNamespaces), Atom10Constants.HtmlMediaType);
System\ServiceModel\Dispatcher\WebErrorHandler.cs (2)
143bodyWriter = StreamBodyWriter.CreateStreamBodyWriter(s => HelpHtmlBuilder.CreateServerErrorPage(helpUri, error).Save(s, SaveOptions.OmitDuplicateNamespaces)); 147bodyWriter = StreamBodyWriter.CreateStreamBodyWriter(s => HelpHtmlBuilder.CreateServerErrorPage(helpUri, null).Save(s, SaveOptions.OmitDuplicateNamespaces));
System.Xml.Linq (38)
System\Xml\Linq\XComponentModel.cs (1)
360return element.ToString(SaveOptions.DisableFormatting);
System\Xml\Linq\XLinq.cs (37)
1299/// Walks the tree starting with "this" node and returns first annotation of type <see cref="SaveOptions"/> 1302/// <returns>The effective <see cref="SaveOptions"/> for this <see cref="XObject"/></returns> 1303internal SaveOptions GetSaveOptionsFromAnnotations() { 1310return SaveOptions.None; 1312object saveOptions = o.Annotation(typeof(SaveOptions)); 1314return (SaveOptions)saveOptions; 1909public string ToString(SaveOptions options) { 1997internal static XmlWriterSettings GetXmlWriterSettings(SaveOptions o) { 1999if ((o & SaveOptions.DisableFormatting) == 0) ws.Indent = true; 2000if ((o & SaveOptions.OmitDuplicateNamespaces) != 0) ws.NamespaceHandling |= NamespaceHandling.OmitDuplicates; 2004string GetXmlString(SaveOptions o) { 2008if ((o & SaveOptions.DisableFormatting) == 0) ws.Indent = true; 2009if ((o & SaveOptions.OmitDuplicateNamespaces) != 0) ws.NamespaceHandling |= NamespaceHandling.OmitDuplicates; 4208/// <see cref="XElement.Save(string, SaveOptions)"/>) enabling 4238public void Save(string fileName, SaveOptions options) { 4252/// <see cref="XElement.Save(Stream, SaveOptions)"/>) enabling 4274public void Save(Stream stream, SaveOptions options) { 4287/// <see cref="XElement.Save(TextWriter, SaveOptions)"/>) enabling 4309public void Save(TextWriter textWriter, SaveOptions options) { 5798/// <see cref="XDocument.Save(string, SaveOptions)"/>) enabling 5828public void Save(string fileName, SaveOptions options) { 5849/// <see cref="XDocument.Save(Stream, SaveOptions)"/>) enabling 5871public void Save(Stream stream, SaveOptions options) { 5891/// <see cref="XDocument.Save(TextWriter, SaveOptions)"/>) enabling 5913public void Save(TextWriter textWriter, SaveOptions options) { 7270Save(fileName, SaveOptions.None); 7283public void Save(string fileName, SaveOptions options) { 7297Save(stream, SaveOptions.None); 7309public void Save(Stream stream, SaveOptions options) { 7322Save(textWriter, SaveOptions.None); 7334public void Save(TextWriter textWriter, SaveOptions options) { 7358return GetXmlString(SaveOptions.None); 7369public string ToString(SaveOptions options) { 7382string GetXmlString(SaveOptions o) { 7386if ((o & SaveOptions.DisableFormatting) == 0) ws.Indent = true; 7387if ((o & SaveOptions.OmitDuplicateNamespaces) != 0) ws.NamespaceHandling |= NamespaceHandling.OmitDuplicates; 8086(node.GetSaveOptionsFromAnnotations() & SaveOptions.OmitDuplicateNamespaces) != 0 ?