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