2 types derived from SettingSection
NuGet.Configuration (2)
Settings\ParsedSettingSection.cs (1)
10
internal sealed class ParsedSettingSection :
SettingSection
Settings\VirtualSettingSection.cs (1)
12
public sealed class VirtualSettingSection :
SettingSection
50 references to SettingSection
NuGet.CommandLine.XPlat (1)
Commands\ConfigCommands\ConfigRunners.cs (1)
182
SettingSection
sectionElement = settings.GetSection(ConfigurationConstants.Config);
NuGet.Configuration (47)
ClientCertificate\ClientCertificateProvider.cs (1)
58
SettingSection
? clientCertificatesSection = _settings.GetSection(ConfigurationConstants.ClientCertificates);
PackageSource\PackageSourceProvider.cs (15)
116
var
packageSourcesSection = settings.GetSection(sectionName);
131
var
disabledSourcesSection = settings.GetSection(ConfigurationConstants.DisabledPackageSources);
323
var
credentialsSection = settings.GetSection(ConfigurationConstants.CredentialsSectionName);
444
var
packageSourcesSection = Settings.GetSection(ConfigurationConstants.PackageSources);
448
var
sourceCredentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName);
549
var
disabledSourcesSection = Settings.GetSection(ConfigurationConstants.DisabledPackageSources);
594
var
disabledSourcesSection = Settings.GetSection(ConfigurationConstants.DisabledPackageSources);
601
var
credentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName);
784
var
disabledSourcesSection = Settings.GetSection(ConfigurationConstants.DisabledPackageSources);
804
var
credentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName);
846
var
sourceCredentialsSection = Settings.GetSection(ConfigurationConstants.CredentialsSectionName);
946
SettingSection
? sourcesSection = Settings.GetSection(sectionName);
1000
var
disabledSources = Settings.GetSection(ConfigurationConstants.DisabledPackageSources);
1015
var
activeSourceSection = Settings.GetSection(ConfigurationConstants.ActivePackageSourceSectionName);
1033
var
activePackageSourceSection = Settings.GetSection(ConfigurationConstants.ActivePackageSourceSectionName);
PackageSourceMapping\PackageSourceMappingProvider.cs (1)
38
SettingSection
? packageSourceMappingSection = _settings.GetSection(ConfigurationConstants.PackageSourceMapping);
Settings\ImmutableSettings.cs (1)
46
public
SettingSection
? GetSection(string sectionName)
Settings\ISettings.cs (1)
19
SettingSection
? GetSection(string sectionName);
Settings\NuGetConfiguration.cs (11)
13
internal sealed class NuGetConfiguration : SettingsGroup<
SettingSection
>, ISettingsGroup
15
internal IReadOnlyDictionary<string,
SettingSection
> Sections => Children.ToDictionary(c => c.ElementName);
23
private NuGetConfiguration(IReadOnlyDictionary<string, string> attributes, IEnumerable<
SettingSection
> children)
32
internal NuGetConfiguration(params
SettingSection
[] sections)
35
foreach (
var
section in sections)
84
if (Sections.TryGetValue(sectionName, out
var
section))
109
if (Sections.TryGetValue(sectionName, out
var
section))
115
public
SettingSection
? GetSection(string sectionName)
117
if (Sections.TryGetValue(sectionName, out
var
section))
119
return section.Clone() as
SettingSection
;
143
return new NuGetConfiguration(Attributes, Sections.Select(s => (
SettingSection
)s.Value.Clone()));
Settings\NullSettings.cs (1)
17
public
SettingSection
? GetSection(string sectionName) => null;
Settings\Settings.cs (5)
46
public
SettingSection
? GetSection(string sectionName)
50
return section.Clone() as
SettingSection
;
124
settingsFile.TryGetSection(sectionName, out
SettingSection
? retrievedSettingFileSection);
125
SettingSection
settingFileSection = retrievedSettingFileSection!;
221
if (f.TryGetSection(sectionName, out
var
section))
Settings\SettingSection.cs (2)
56
var
section = other as
SettingSection
;
Settings\SettingsFile.cs (2)
141
public
SettingSection
? GetSection(string sectionName)
193
internal bool TryGetSection(string sectionName, [NotNullWhen(true)] out
SettingSection
? section)
Settings\VirtualSettingSection.cs (2)
14
internal VirtualSettingSection(
SettingSection
section)
29
internal VirtualSettingSection Merge(
SettingSection
other)
Utility\SettingsUtility.cs (5)
29
var
sectionElement = settings.GetSection(section);
52
var
sectionElement = settings.GetSection(section);
141
var
sectionElement = settings.GetSection(section);
327
var
fallbackFoldersSection = settings.GetSection(ConfigurationConstants.FallbackPackageFolders);
412
var
configSection = settings.GetSection(ConfigurationConstants.Config);
NuGet.Packaging (2)
Signing\TrustedSigners\TrustedSignersProvider.cs (2)
24
var
trustedSignersSection = _settings.GetSection(ConfigurationConstants.TrustedSigners);
77
var
trustedSignersSection = settings.GetSection(ConfigurationConstants.TrustedSigners);