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