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
50 references to SettingSection
NuGet.CommandLine.XPlat (1)
Commands\ConfigCommands\ConfigRunners.cs (1)
182SettingSection sectionElement = settings.GetSection(ConfigurationConstants.Config);
NuGet.Configuration (47)
ClientCertificate\ClientCertificateProvider.cs (1)
58SettingSection? clientCertificatesSection = _settings.GetSection(ConfigurationConstants.ClientCertificates);
PackageSource\PackageSourceProvider.cs (15)
116var packageSourcesSection = settings.GetSection(sectionName); 131var disabledSourcesSection = settings.GetSection(ConfigurationConstants.DisabledPackageSources); 323var credentialsSection = settings.GetSection(ConfigurationConstants.CredentialsSectionName); 444var packageSourcesSection = Settings.GetSection(ConfigurationConstants.PackageSources); 448var sourceCredentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName); 549var disabledSourcesSection = Settings.GetSection(ConfigurationConstants.DisabledPackageSources); 594var disabledSourcesSection = Settings.GetSection(ConfigurationConstants.DisabledPackageSources); 601var credentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName); 784var disabledSourcesSection = Settings.GetSection(ConfigurationConstants.DisabledPackageSources); 804var credentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName); 846var sourceCredentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName); 946SettingSection? sourcesSection = Settings.GetSection(sectionName); 1000var disabledSources = Settings.GetSection(ConfigurationConstants.DisabledPackageSources); 1015var activeSourceSection = Settings.GetSection(ConfigurationConstants.ActivePackageSourceSectionName); 1033var 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)) 109if (Sections.TryGetValue(sectionName, out var section)) 115public SettingSection? GetSection(string sectionName) 117if (Sections.TryGetValue(sectionName, out var section)) 119return section.Clone() as SettingSection; 143return new NuGetConfiguration(Attributes, Sections.Select(s => (SettingSection)s.Value.Clone()));
Settings\NullSettings.cs (1)
17public SettingSection? GetSection(string sectionName) => null;
Settings\Settings.cs (5)
46public SettingSection? GetSection(string sectionName) 50return section.Clone() as SettingSection; 124settingsFile.TryGetSection(sectionName, out SettingSection? retrievedSettingFileSection); 125SettingSection settingFileSection = retrievedSettingFileSection!; 221if (f.TryGetSection(sectionName, out var section))
Settings\SettingSection.cs (2)
56var section = other as SettingSection;
Settings\SettingsFile.cs (2)
141public SettingSection? GetSection(string sectionName) 193internal 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);