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)
29 references to GetSection
NuGet.CommandLine.XPlat (1)
Commands\ConfigCommands\ConfigRunners.cs (1)
182SettingSection sectionElement = settings.GetSection(ConfigurationConstants.Config);
NuGet.Configuration (26)
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); 267var sectionItems = Settings.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\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);