25 instantiations of XDocument
illink (1)
ILLink.Tasks (1)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (3)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
Microsoft.Build.Tasks.Core (1)
Microsoft.Cci.Extensions (1)
Microsoft.CodeAnalysis (1)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.Workspaces (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.XliffTasks (1)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.VisualStudio.LanguageServices (1)
System.Private.Xml.Linq (2)
XmlFileLogger (1)
407 references to XDocument
Aspire.Dashboard (2)
BuildBoss (4)
ConfigurationSchemaGenerator (2)
dotnet-svcutil-lib (6)
dotnet-user-jwts (2)
dotnet-user-secrets (2)
IIS.FunctionalTests (7)
IIS.LongTests (4)
IIS.NewHandler.FunctionalTests (4)
IIS.NewShim.FunctionalTests (4)
IIS.ShadowCopy.Tests (4)
IIS.Tests (2)
IISExpress.FunctionalTests (5)
illink (2)
ILLink.Tasks (3)
Microsoft.AspNetCore.App.UnitTests (10)
Microsoft.AspNetCore.Authentication.Test (4)
Microsoft.AspNetCore.DataProtection (3)
Microsoft.AspNetCore.Grpc.JsonTranscoding.Tests (8)
Microsoft.AspNetCore.Mvc.Formatters.Xml.Test (6)
Microsoft.AspNetCore.Mvc.FunctionalTests (12)
Microsoft.AspNetCore.Rewrite (2)
Microsoft.AspNetCore.Rewrite.Tests (2)
Microsoft.AspNetCore.Server.IntegrationTesting (4)
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (8)
Microsoft.Build.BuildCheck.UnitTests (2)
Microsoft.Build.CommandLine.UnitTests (2)
Microsoft.Build.Engine.OM.UnitTests (2)
Microsoft.Build.Engine.UnitTests (2)
Microsoft.Build.Framework.UnitTests (2)
Microsoft.Build.Tasks.Core (11)
Microsoft.Build.Tasks.UnitTests (2)
Microsoft.Build.Utilities.UnitTests (2)
Microsoft.Cci.Extensions (2)
Microsoft.CodeAnalysis (9)
Microsoft.CodeAnalysis.CSharp (3)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol (4)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.VisualBasic (3)
Microsoft.CodeAnalysis.VisualBasic.Emit.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.MSBuild (2)
Microsoft.CodeAnalysis.Workspaces.MSBuild.BuildHost (1)
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (4)
Microsoft.CodeAnalysis.Workspaces.UnitTests (2)
Microsoft.DotNet.Arcade.Sdk (7)
Microsoft.DotNet.Arcade.Sdk.Tests (3)
Microsoft.DotNet.Build.Tasks.Installers (7)
Microsoft.DotNet.Build.Tasks.Packaging (4)
Microsoft.DotNet.Build.Tasks.VisualStudio (3)
Microsoft.DotNet.Build.Tasks.VisualStudio.Tests (8)
Microsoft.DotNet.Build.Tasks.Workloads (8)
Microsoft.DotNet.NuGetRepack.Tasks (6)
Microsoft.DotNet.NuGetRepack.Tests (1)
Microsoft.DotNet.PackageTesting (1)
Microsoft.DotNet.SharedFramework.Sdk (1)
Microsoft.DotNet.SignTool.Tests (2)
Microsoft.DotNet.VersionTools (2)
Microsoft.DotNet.XliffTasks (7)
Microsoft.Extensions.FileProviders.Embedded (2)
Microsoft.Extensions.FileProviders.Embedded.Tests (1)
Microsoft.Extensions.SecretManager.Tools.Tests (6)
Microsoft.Maui.Resizetizer (6)
Microsoft.VisualStudio.LanguageServices (5)
Snippets\SnippetExpansionClient.cs (3)
555var snippet = CreateMethodCallSnippet(methodName, includeMethod: true, ImmutableArray<IParameterSymbol>.Empty, ImmutableDictionary<string, string>.Empty);
633private static XDocument CreateMethodCallSnippet(string methodName, bool includeMethod, ImmutableArray<IParameterSymbol> parameters, ImmutableDictionary<string, string> parameterValues)
924var snippet = CreateMethodCallSnippet(method.Name, includeMethod: false, method.Parameters, newArguments);
Microsoft.VisualStudio.LanguageServices.CSharp (2)
netstandard (1)
System.Private.Xml.Linq (137)
System\Xml\Linq\XDocument.cs (99)
17/// An <see cref="XDocument"/> can contain:
32/// Initializes a new instance of the <see cref="XDocument"/> class.
34/// <see cref="XDocument"/>, creating an <see cref="XDocument"/> with
36/// <see cref="XDocument"/> object.
39/// Initializes a new instance of the <see cref="XDocument"/> class.
46/// Initializes a new instance of the <see cref="XDocument"/> class with the specified content.
69/// Initializes a new instance of the <see cref="XDocument"/> class
97/// Initializes a new instance of the <see cref="XDocument"/> class from an
101/// The <see cref="XDocument"/> object that will be copied.
103public XDocument(XDocument other)
159/// <see cref="XDocument"/> and initializing it from a data source containing
162/// <see cref="XmlReader"/>. Note: Use <see cref="XDocument.Parse(string)"/>
163/// to create an <see cref="XDocument"/> from a string containing XML.
164/// <seealso cref="XDocument.Parse(string)"/>
167/// Create a new <see cref="XDocument"/> based on the contents of the file
169/// <see cref="XDocument.Parse(string)"/> to create an <see cref="XDocument"/> from
172/// <seealso cref="XDocument.Parse(string)"/>
180/// A URI string referencing the file to load into a new <see cref="XDocument"/>.
183/// An <see cref="XDocument"/> initialized with the contents of the file referenced
186public static XDocument Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri)
192/// Create a new <see cref="XDocument"/> based on the contents of the file
204/// A string representing the URI of the file to be loaded into a new <see cref="XDocument"/>.
210/// An <see cref="XDocument"/> initialized with the contents of the file referenced
214public static XDocument Load([StringSyntax(StringSyntaxAttribute.Uri)] string uri, LoadOptions options)
224/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
229/// created <see cref="XDocument"/>.
232/// A new <see cref="XDocument"/> containing the contents of the passed in
235public static XDocument Load(Stream stream)
241/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
252/// created <see cref="XDocument"/>.
258/// A new <see cref="XDocument"/> containing the contents of the passed in
261public static XDocument Load(Stream stream, LoadOptions options)
271/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
282/// created <see cref="XDocument"/>.
291/// A new <see cref="XDocument"/> containing the contents of the passed in
294public static async Task<XDocument> LoadAsync(Stream stream, LoadOptions options, CancellationToken cancellationToken)
307/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
312/// created <see cref="XDocument"/>.
315/// A new <see cref="XDocument"/> containing the contents of the passed in
318public static XDocument Load(TextReader textReader)
324/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
335/// created <see cref="XDocument"/>.
341/// A new <see cref="XDocument"/> containing the contents of the passed in
344public static XDocument Load(TextReader textReader, LoadOptions options)
354/// Create a new <see cref="XDocument"/> and initialize its underlying XML tree using
365/// created <see cref="XDocument"/>.
374/// A new <see cref="XDocument"/> containing the contents of the passed in
377public static async Task<XDocument> LoadAsync(TextReader textReader, LoadOptions options, CancellationToken cancellationToken)
390/// Create a new <see cref="XDocument"/> containing the contents of the
395/// <see cref="XDocument"/>.
398/// A new <see cref="XDocument"/> containing the contents of the passed
401public static XDocument Load(XmlReader reader)
407/// Create a new <see cref="XDocument"/> containing the contents of the
412/// <see cref="XDocument"/>.
418/// A new <see cref="XDocument"/> containing the contents of the passed
421public static XDocument Load(XmlReader reader, LoadOptions options)
427XDocument d = InitLoad(reader, options);
436/// Create a new <see cref="XDocument"/> containing the contents of the
441/// <see cref="XDocument"/>.
450/// A new <see cref="XDocument"/> containing the contents of the passed
453public static Task<XDocument> LoadAsync(XmlReader reader, LoadOptions options, CancellationToken cancellationToken)
458return Task.FromCanceled<XDocument>(cancellationToken);
462private static async Task<XDocument> LoadAsyncInternal(XmlReader reader, LoadOptions options, CancellationToken cancellationToken)
469XDocument d = InitLoad(reader, options);
480private static XDocument InitLoad(XmlReader reader, LoadOptions options)
482XDocument d = new XDocument();
507/// Create a new <see cref="XDocument"/> from a string containing
511/// Create a new <see cref="XDocument"/> from a string containing
518/// An <see cref="XDocument"/> containing an XML tree initialized from the
521public static XDocument Parse(string text)
527/// Create a new <see cref="XDocument"/> from a string containing
545/// An <see cref="XDocument"/> containing an XML tree initialized from the
548public static XDocument Parse(string text, LoadOptions options)
561/// Output this <see cref="XDocument"/> to the passed in <see cref="Stream"/>.
566/// <see cref="XDocument.Save(Stream, SaveOptions)"/>) enabling
572/// The <see cref="Stream"/> to output this <see cref="XDocument"/> to.
580/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>.
609/// Output this <see cref="XDocument"/> to a <see cref="Stream"/>.
645/// Output this <see cref="XDocument"/> to the passed in <see cref="TextWriter"/>.
650/// <see cref="XDocument.Save(TextWriter, SaveOptions)"/>) enabling
656/// The <see cref="TextWriter"/> to output this <see cref="XDocument"/> to.
664/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>.
683/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>.
694/// Output this <see cref="XDocument"/> to a <see cref="TextWriter"/>.
719/// Outputs this <see cref="XDocument"/>'s underlying XML tree. The output can
724/// Output this <see cref="XDocument"/> to a file.
729/// <see cref="XDocument.Save(string, SaveOptions)"/>) enabling
743/// Output this <see cref="XDocument"/> to an <see cref="XmlWriter"/>.
757/// Output this <see cref="XDocument"/> to a file.
787/// Output this <see cref="XDocument"/>'s underlying XML tree to the
789/// <seealso cref="XDocument.Save(XmlWriter)"/>
793/// <see cref="XDocument"/>.
816/// Output this <see cref="XDocument"/>'s underlying XML tree to the
818/// <seealso cref="XDocument.Save(XmlWriter)"/>
822/// <see cref="XDocument"/>.
872XDocument? other = node as XDocument;
System.Xml.Linq (1)
System.Xml.XDocument (1)
XmlFileLogger (1)