83 references to LoadOptions
dotnet-user-jwts (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
18
var projectDocument = XDocument.Load(projectPath,
LoadOptions
.PreserveWhitespace);
dotnet-user-secrets (1)
src\Tools\Shared\SecretsHelpers\UserSecretsCreator.cs (1)
18
var projectDocument = XDocument.Load(projectPath,
LoadOptions
.PreserveWhitespace);
illink (1)
Linker.Steps\ProcessLinkerXmlBase.cs (1)
50
_document = XDocument.Load (documentStream,
LoadOptions
.SetLineInfo).CreateNavigator ();
Microsoft.AspNetCore.Rewrite (1)
IISUrlRewrite\UrlRewriteFileParser.cs (1)
23
var xmlDoc = XDocument.Load(reader,
LoadOptions
.SetLineInfo);
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\RewriteMapParserTests.cs (1)
27
var xmlDoc = XDocument.Load(new StringReader(xml),
LoadOptions
.SetLineInfo);
Microsoft.Build.Tasks.Core (2)
GenerateResource.cs (1)
3060
XDocument doc = XDocument.Load(xmlReader,
LoadOptions
.PreserveWhitespace);
ResourceHandling\MSBuildResXReader.cs (1)
31
XDocument doc = XDocument.Load(xmlReader,
LoadOptions
.PreserveWhitespace);
Microsoft.DotNet.Arcade.Sdk (1)
src\SourceBuild\ReadSourceBuildIntermediateNupkgDependencies.cs (1)
45
XElement root = XElement.Load(VersionDetailsXmlFile,
LoadOptions
.PreserveWhitespace);
Microsoft.DotNet.VersionTools (1)
Automation\NupkgInfoFactory.cs (1)
58
XDocument doc = XDocument.Load(nuspecFileStream,
LoadOptions
.PreserveWhitespace);
Microsoft.Extensions.SecretManager.Tools.Tests (2)
InitCommandTest.cs (2)
105
var projectDocumentWithoutSecret = XDocument.Load(projectFile,
LoadOptions
.PreserveWhitespace);
110
var projectDocumentWithSecret = XDocument.Load(projectFile,
LoadOptions
.PreserveWhitespace);
netstandard (1)
netstandard.cs (1)
2263
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
LoadOptions
))]
System.Private.Xml.Linq (69)
System\Xml\Linq\XContainer.cs (9)
839
internal void ReadContentFrom(XmlReader r,
LoadOptions
o)
841
if ((o & (
LoadOptions
.SetBaseUri |
LoadOptions
.SetLineInfo)) == 0)
864
internal async Task ReadContentFromAsync(XmlReader r,
LoadOptions
o, CancellationToken cancellationToken)
866
if ((o & (
LoadOptions
.SetBaseUri |
LoadOptions
.SetLineInfo)) == 0)
894
public ContentReader(XContainer rootContainer, XmlReader r,
LoadOptions
o)
897
_baseUri = (o &
LoadOptions
.SetBaseUri) != 0 ? r.BaseURI : null;
898
_lineInfo = (o &
LoadOptions
.SetLineInfo) != 0 ? r as IXmlLineInfo : null;
System\Xml\Linq\XDocument.cs (26)
188
return Load(uri,
LoadOptions
.None);
207
/// A set of <see cref="
LoadOptions
"/>.
214
public static XDocument Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri,
LoadOptions
options)
237
return Load(stream,
LoadOptions
.None);
255
/// A set of <see cref="
LoadOptions
"/>.
261
public static XDocument Load(Stream stream,
LoadOptions
options)
285
/// A set of <see cref="
LoadOptions
"/>.
294
public static async Task<XDocument> LoadAsync(Stream stream,
LoadOptions
options, CancellationToken cancellationToken)
320
return Load(textReader,
LoadOptions
.None);
338
/// A set of <see cref="
LoadOptions
"/>.
344
public static XDocument Load(TextReader textReader,
LoadOptions
options)
368
/// A set of <see cref="
LoadOptions
"/>.
377
public static async Task<XDocument> LoadAsync(TextReader textReader,
LoadOptions
options, CancellationToken cancellationToken)
403
return Load(reader,
LoadOptions
.None);
415
/// A set of <see cref="
LoadOptions
"/>.
421
public static XDocument Load(XmlReader reader,
LoadOptions
options)
444
/// A set of <see cref="
LoadOptions
"/>.
453
public static Task<XDocument> LoadAsync(XmlReader reader,
LoadOptions
options, CancellationToken cancellationToken)
462
private static async Task<XDocument> LoadAsyncInternal(XmlReader reader,
LoadOptions
options, CancellationToken cancellationToken)
480
private static XDocument InitLoad(XmlReader reader,
LoadOptions
options)
483
if ((options &
LoadOptions
.SetBaseUri) != 0)
491
if ((options &
LoadOptions
.SetLineInfo) != 0)
523
return Parse(text,
LoadOptions
.None);
533
/// <see cref="
LoadOptions
.PreserveWhitespace"/> is enabled then
542
/// A set of <see cref="
LoadOptions
"/>.
548
public static XDocument Parse(string text,
LoadOptions
options)
System\Xml\Linq\XElement.cs (32)
142
: this(r,
LoadOptions
.None)
157
internal XElement(XmlReader r,
LoadOptions
o)
165
await xe.ReadElementFromAsync(r,
LoadOptions
.None, cancellationToken).ConfigureAwait(false);
575
return Load(uri,
LoadOptions
.None);
582
/// <seealso cref="XDocument.Load(string,
LoadOptions
)"/>
595
/// A set of <see cref="
LoadOptions
"/>.
602
public static XElement Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri,
LoadOptions
options)
625
return Load(stream,
LoadOptions
.None);
643
/// A set of <see cref="
LoadOptions
"/>.
649
public static XElement Load(Stream stream,
LoadOptions
options)
673
/// A set of <see cref="
LoadOptions
"/>.
681
public static async Task<XElement> LoadAsync(Stream stream,
LoadOptions
options, CancellationToken cancellationToken)
707
return Load(textReader,
LoadOptions
.None);
725
/// A set of <see cref="
LoadOptions
"/>.
731
public static XElement Load(TextReader textReader,
LoadOptions
options)
755
/// A set of <see cref="
LoadOptions
"/>.
763
public static async Task<XElement> LoadAsync(TextReader textReader,
LoadOptions
options, CancellationToken cancellationToken)
789
return Load(reader,
LoadOptions
.None);
801
/// A set of <see cref="
LoadOptions
"/>.
807
public static XElement Load(XmlReader reader,
LoadOptions
options)
827
/// A set of <see cref="
LoadOptions
"/>.
835
public static Task<XElement> LoadAsync(XmlReader reader,
LoadOptions
options, CancellationToken cancellationToken)
844
private static async Task<XElement> LoadAsyncInternal(XmlReader reader,
LoadOptions
options, CancellationToken cancellationToken)
876
return Parse(text,
LoadOptions
.None);
897
/// A set of <see cref="
LoadOptions
"/>.
902
public static XElement Parse(string text,
LoadOptions
options)
1884
ReadElementFrom(reader,
LoadOptions
.None);
2014
private void ReadElementFrom(XmlReader r,
LoadOptions
o)
2027
private async Task ReadElementFromAsync(XmlReader r,
LoadOptions
o, CancellationToken cancellationTokentoken)
2046
private void ReadElementFromImpl(XmlReader r,
LoadOptions
o)
2050
if ((o &
LoadOptions
.SetBaseUri) != 0)
2059
if ((o &
LoadOptions
.SetLineInfo) != 0)
System\Xml\Linq\XNode.cs (2)
672
internal static XmlReaderSettings GetXmlReaderSettings(
LoadOptions
o)
675
if ((o &
LoadOptions
.PreserveWhitespace) == 0) rs.IgnoreWhitespace = true;
System.Xml.Linq (1)
System.Xml.Linq.cs (1)
5
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
LoadOptions
))]
System.Xml.XDocument (1)
artifacts\obj\System.Xml.XDocument\Debug\net9.0\System.Xml.XDocument.Forwards.cs (1)
4
[assembly: System.Runtime.CompilerServices.TypeForwardedTo(typeof(System.Xml.Linq.
LoadOptions
))]