2 types derived from SettingSection
NuGet.Configuration (2)
Settings\ParsedSettingSection.cs (1)
10internal sealed class ParsedSettingSection : SettingSection
Settings\VirtualSettingSection.cs (1)
12public sealed class VirtualSettingSection : SettingSection
53 references to SettingSection
NuGet.CommandLine.XPlat (1)
Commands\ConfigCommands\ConfigRunners.cs (1)
182SettingSection sectionElement = settings.GetSection(ConfigurationConstants.Config);
NuGet.Configuration (50)
ClientCertificate\ClientCertificateProvider.cs (1)
58SettingSection? clientCertificatesSection = _settings.GetSection(ConfigurationConstants.ClientCertificates);
PackageSource\PackageSourceProvider.cs (16)
116var packageSourcesSection = settings.GetSection(sectionName); 131var disabledSourcesSection = settings.GetSection(ConfigurationConstants.DisabledPackageSources); 224var existingSection = outputSettingsFile.GetSection(ConfigurationConstants.MinPublishAgeExceptions); 464var credentialsSection = settings.GetSection(ConfigurationConstants.CredentialsSectionName); 585var packageSourcesSection = Settings.GetSection(ConfigurationConstants.PackageSources); 589var sourceCredentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName); 690var disabledSourcesSection = Settings.GetSection(ConfigurationConstants.DisabledPackageSources); 735var disabledSourcesSection = Settings.GetSection(ConfigurationConstants.DisabledPackageSources); 742var credentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName); 927var disabledSourcesSection = Settings.GetSection(ConfigurationConstants.DisabledPackageSources); 947var credentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName); 989var sourceCredentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName); 1089SettingSection? sourcesSection = Settings.GetSection(sectionName); 1143var disabledSources = Settings.GetSection(ConfigurationConstants.DisabledPackageSources); 1158var activeSourceSection = Settings.GetSection(ConfigurationConstants.ActivePackageSourceSectionName); 1176var activePackageSourceSection = Settings.GetSection(ConfigurationConstants.ActivePackageSourceSectionName);
PackageSourceMapping\PackageSourceMappingProvider.cs (1)
38SettingSection? packageSourceMappingSection = _settings.GetSection(ConfigurationConstants.PackageSourceMapping);
Settings\ImmutableSettings.cs (1)
46public SettingSection? GetSection(string sectionName)
Settings\ISettings.cs (1)
19SettingSection? GetSection(string sectionName);
Settings\NuGetConfiguration.cs (11)
13internal sealed class NuGetConfiguration : SettingsGroup<SettingSection>, ISettingsGroup 15internal IReadOnlyDictionary<string, SettingSection> Sections => Children.ToDictionary(c => c.ElementName); 23private NuGetConfiguration(IReadOnlyDictionary<string, string> attributes, IEnumerable<SettingSection> children) 32internal NuGetConfiguration(params SettingSection[] sections) 35foreach (var section in sections) 84if (Sections.TryGetValue(sectionName, out var section)) 132if (Sections.TryGetValue(sectionName, out var section)) 138public SettingSection? GetSection(string sectionName) 140if (Sections.TryGetValue(sectionName, out var section)) 142return section.Clone() as SettingSection; 166return new NuGetConfiguration(Attributes, Sections.Select(s => (SettingSection)s.Value.Clone()));
Settings\NullSettings.cs (1)
17public SettingSection? GetSection(string sectionName) => null;
Settings\Settings.cs (7)
46public SettingSection? GetSection(string sectionName) 50return section.Clone() as SettingSection; 124settingsFile.TryGetSection(sectionName, out SettingSection? retrievedSettingFileSection); 125SettingSection settingFileSection = retrievedSettingFileSection!; 155outputSettingsFile.TryGetSection(sectionName, out SettingSection? settingFileSection); 158else if (outputSettingsFile.TryGetSection(sectionName, out SettingSection? settingFileSection)) 242if (f.TryGetSection(sectionName, out var section))
Settings\SettingSection.cs (2)
56var section = other as SettingSection;
Settings\SettingsFile.cs (2)
141public SettingSection? GetSection(string sectionName) 198internal bool TryGetSection(string sectionName, [NotNullWhen(true)] out SettingSection? section)
Settings\VirtualSettingSection.cs (2)
14internal VirtualSettingSection(SettingSection section) 29internal VirtualSettingSection Merge(SettingSection other)
Utility\SettingsUtility.cs (5)
29var sectionElement = settings.GetSection(section); 52var sectionElement = settings.GetSection(section); 141var sectionElement = settings.GetSection(section); 327var fallbackFoldersSection = settings.GetSection(ConfigurationConstants.FallbackPackageFolders); 412var configSection = settings.GetSection(ConfigurationConstants.Config);
NuGet.Packaging (2)
Signing\TrustedSigners\TrustedSignersProvider.cs (2)
24var trustedSignersSection = _settings.GetSection(ConfigurationConstants.TrustedSigners); 77var trustedSignersSection = settings.GetSection(ConfigurationConstants.TrustedSigners);