3 implementations of GetSection
NuGet.Configuration (3)
Settings\ImmutableSettings.cs (1)
46public SettingSection? GetSection(string sectionName)
Settings\NullSettings.cs (1)
17public SettingSection? GetSection(string sectionName) => null;
Settings\Settings.cs (1)
46public SettingSection? GetSection(string sectionName)
28 references to GetSection
NuGet.CommandLine.XPlat (1)
Commands\ConfigCommands\ConfigRunners.cs (1)
182SettingSection sectionElement = settings.GetSection(ConfigurationConstants.Config);
NuGet.Configuration (25)
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\ConfigurationDefaults.cs (2)
60IEnumerable<SourceItem>? sourceItems = _settingsManager.GetSection(sectionName)?.Items.OfType<SourceItem>(); 66var disabledPackageSources = _settingsManager.GetSection(ConfigurationConstants.DisabledPackageSources)?.Items.OfType<AddItem>() ?? Enumerable.Empty<AddItem>();
Settings\ImmutableSettings.cs (1)
48return _settings.GetSection(sectionName);
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);