109 references to Descendants
dotnet-svcutil-lib (1)
Shared\MSBuildProj.cs (1)
429var ele = doc.Root?.Descendants(elementStr).FirstOrDefault();
IIS.FunctionalTests (5)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (3)
154var eventElements = xDocument.Descendants(nameSpace + "Event"); 157var eventElementWithOpCode = eventElement.Descendants(nameSpace + "RenderingInfo").Single().Descendants(nameSpace + "Opcode").Single();
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
105.Descendants("system.webServer")
IIS.LongTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
551.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
389.Descendants("system.webServer") 578element => element.Descendants("aspNetCore").Single().SetAttributeValue("processPath", "") 583element => element.Descendants("aspNetCore").Single().SetAttributeValue("hostingModel", "asdf") 588element => element.Descendants("aspNetCore").Single().GetOrAdd("environmentVariables").GetOrAdd("add") 1314element.Descendants("site").Single().Element("application").SetAttributeValue("path", "/" + appName); 1333element.Descendants("bindings") 1360element.Descendants("bindings") 1365element.Descendants("access") 1407element.Descendants("bindings")
IIS.NewHandler.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
551.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
389.Descendants("system.webServer") 578element => element.Descendants("aspNetCore").Single().SetAttributeValue("processPath", "") 583element => element.Descendants("aspNetCore").Single().SetAttributeValue("hostingModel", "asdf") 588element => element.Descendants("aspNetCore").Single().GetOrAdd("environmentVariables").GetOrAdd("add") 1314element.Descendants("site").Single().Element("application").SetAttributeValue("path", "/" + appName); 1333element.Descendants("bindings") 1360element.Descendants("bindings") 1365element.Descendants("access") 1407element.Descendants("bindings")
IIS.NewShim.FunctionalTests (11)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
551.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
389.Descendants("system.webServer") 578element => element.Descendants("aspNetCore").Single().SetAttributeValue("processPath", "") 583element => element.Descendants("aspNetCore").Single().SetAttributeValue("hostingModel", "asdf") 588element => element.Descendants("aspNetCore").Single().GetOrAdd("environmentVariables").GetOrAdd("add") 1314element.Descendants("site").Single().Element("application").SetAttributeValue("path", "/" + appName); 1333element.Descendants("bindings") 1360element.Descendants("bindings") 1365element.Descendants("access") 1407element.Descendants("bindings")
IIS.ShadowCopy.Tests (1)
src\Servers\IIS\IIS\test\Common.FunctionalTests\Infrastructure\RequiresIISAttribute.cs (1)
88.Descendants("attribute")
IISExpress.FunctionalTests (15)
src\Servers\IIS\IIS\test\Common.FunctionalTests\FrebTests.cs (3)
154var eventElements = xDocument.Descendants(nameSpace + "Event"); 157var eventElementWithOpCode = eventElement.Descendants(nameSpace + "RenderingInfo").Single().Descendants(nameSpace + "Opcode").Single();
src\Servers\IIS\IIS\test\Common.FunctionalTests\MultiApplicationTests.cs (1)
105.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\ShutdownTests.cs (1)
551.Descendants("system.webServer")
src\Servers\IIS\IIS\test\Common.LongTests\StartupTests.cs (9)
389.Descendants("system.webServer") 578element => element.Descendants("aspNetCore").Single().SetAttributeValue("processPath", "") 583element => element.Descendants("aspNetCore").Single().SetAttributeValue("hostingModel", "asdf") 588element => element.Descendants("aspNetCore").Single().GetOrAdd("environmentVariables").GetOrAdd("add") 1314element.Descendants("site").Single().Element("application").SetAttributeValue("path", "/" + appName); 1333element.Descendants("bindings") 1360element.Descendants("bindings") 1365element.Descendants("access") 1407element.Descendants("bindings")
UpgradeFeatureDetectionTests.cs (1)
67element => element.Descendants("webSocket")
Microsoft.AspNetCore.Authentication.Test (2)
OpenIdConnect\TestSettings.cs (2)
54var forms = xdoc.Descendants("form"); 92var forms = xdoc.Descendants("form");
Microsoft.AspNetCore.DataProtection (1)
XmlEncryption\XmlEncryptionExtensions.cs (1)
39var elementWhichRequiresDecryption = doc.Descendants(XmlConstants.EncryptedSecretElementName).FirstOrDefault();
Microsoft.AspNetCore.Rewrite (4)
IISUrlRewrite\RewriteMapParser.cs (1)
15var mapsElement = xmlRoot.Descendants(RewriteTags.RewriteMaps).SingleOrDefault();
IISUrlRewrite\UrlRewriteFileParser.cs (3)
24var xmlRoot = xmlDoc.Descendants(RewriteTags.Rewrite).FirstOrDefault(); 34ParseRules(xmlRoot.Descendants(RewriteTags.GlobalRules).FirstOrDefault(), result, global: true); 35ParseRules(xmlRoot.Descendants(RewriteTags.Rules).FirstOrDefault(), result, global: false);
Microsoft.AspNetCore.Rewrite.Tests (1)
IISUrlRewrite\RewriteMapParserTests.cs (1)
28var xmlRoot = xmlDoc.Descendants(RewriteTags.Rewrite).FirstOrDefault();
Microsoft.AspNetCore.Server.IntegrationTesting (2)
Deployers\RemoteWindowsDeployer\RemoteWindowsDeployer.cs (1)
155var aspNetCoreSection = webConfig.Descendants("aspNetCore")
xunit\IISExpressAncmSchema.cs (1)
45.Descendants("attribute")
Microsoft.AspNetCore.Server.IntegrationTesting.IIS (11)
IISDeployer.cs (1)
138.Descendants("system.webServer")
IISDeployerBase.cs (2)
112.Descendants("system.webServer") 127.Descendants("system.webServer")
IISDeploymentParameterExtensions.cs (6)
31element.Descendants("binding") 35element.Descendants("access") 46element.Descendants("binding") 50element.Descendants("access") 211var aspNetCoreElement = config.Descendants("aspNetCore").Single(); 221var aspNetCoreElement = config.Descendants("aspNetCore").Single();
WebConfigHelpers.cs (2)
15.Descendants("system.webServer") 27.Descendants("system.webServer")
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (2)
DocumentationComments\CrefTests.cs (2)
6924var cref = xml.Descendants("see").Single().Attribute("cref").Value; 6948var cref = xml.Descendants("see").Single().Attribute("cref").Value;
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (2)
DocumentationComments\DocCommentTests.vb (2)
12467Dim cref = xml.Descendants("see").Single().Attribute("cref").Value 12497Dim cref = xml.Descendants("see").Single().Attribute("cref").Value
Microsoft.CodeAnalysis.Workspaces (2)
Shared\Extensions\ISymbolExtensions.cs (1)
426var typeParameterRefs = document.Descendants(DocumentationCommentXmlNames.TypeParameterReferenceElementName).ToImmutableArray();
Utilities\Documentation\XmlDocumentationProvider.cs (1)
77foreach (var e in doc.Descendants("member"))
Microsoft.CodeAnalysis.Workspaces.MSBuild (1)
MSBuild\BuildHostProcessManager.cs (1)
339var propertyGroups = document.Descendants("PropertyGroup");
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
SolutionGeneration.cs (1)
265var propertyGroup = document.Root.Descendants(XName.Get("PropertyGroup", NS)).First();
VisualStudioMSBuildWorkspaceTests.cs (1)
2496var projectReferenceItems = document.Descendants(XName.Get("ProjectReference", MSBuildNamespace));
Microsoft.DotNet.Arcade.Sdk (1)
src\GenerateResxSource.cs (1)
106foreach (var node in XDocument.Load(ResourceFile).Descendants("data"))
Microsoft.DotNet.Arcade.Sdk.Tests (3)
SourceMappingToNugetConfigTest.cs (3)
55.Descendants("packageSource") 63.Descendants("package") 70.Descendants("package")
Microsoft.DotNet.Build.Tasks.Packaging (1)
GenerateNuSpec.cs (1)
164var licenseUrlElement = nuspec.Descendants(NuSpecXmlNamespace + "licenseUrl").Single();
Microsoft.DotNet.Build.Tasks.Workloads (2)
Msi\WorkloadPackGroupMsi.wix.cs (2)
94var componentGroupRefElement = productDoc.Root.Descendants(ns + "ComponentGroupRef").Single(); 102var registryKeyElement = registryDoc.Root.Descendants(ns + "RegistryKey").Single();
Microsoft.DotNet.NuGetRepack.Tasks (1)
src\NuGetVersionUpdater.cs (1)
293Descendants(XName.Get("dependency", package.NuspecXmlns)) ?? Array.Empty<XElement>();
Microsoft.DotNet.SignTool.Tests (1)
FakeBuildEngine.cs (1)
44var itemGroupNode = xml.Descendants("ItemGroup");
Microsoft.DotNet.SourceBuild.Tasks (1)
src\UsageReport\WriteUsageReports.cs (1)
82foreach (var x in xml.Descendants("Package"))
Microsoft.DotNet.XliffTasks (8)
Model\ResxDocument.cs (2)
18foreach (XElement node in Document.Descendants("data")) 59foreach (XElement node in Document.Descendants("data"))
Model\VsctDocument.cs (3)
20foreach (XElement strings in Document.Descendants(Document.Root.Name.Namespace + "Strings")) 64foreach (XElement strings in Document.Descendants(Document.Root.Name.Namespace + "Strings")) 79foreach (XElement imageTag in Document.Descendants(Document.Root.Name.Namespace + "Bitmap"))
Model\XlfDocument.cs (3)
108foreach (XElement unitElement in bodyElement.Descendants(TransUnit).ToList()) 264foreach (XElement element in _document.Descendants(TransUnit)) 280(_document.Descendants(TransUnit)
Microsoft.VisualStudio.LanguageServices (5)
ColorSchemes\ColorSchemeApplier.ColorSchemeReader.cs (5)
31.Descendants("Theme") 42var categoryElement = themeElement.Descendants("Category").Single(); 54.Descendants("Color") 65var backgroundElement = colorElement.Descendants("Background").SingleOrDefault(); 70var foregroundElement = colorElement.Descendants("Foreground").SingleOrDefault();
System.ComponentModel.TypeConverter (1)
MS\Internal\Xml\Linq\ComponentModel\XComponentModel.cs (1)
207return _value = new XDeferredAxis<XElement>((e, n) => n != null ? e.Descendants(n) : e.Descendants(), (component as XElement)!, null);