2 implementations of TryGet
Microsoft.Extensions.Configuration (2)
ChainedConfigurationProvider.cs (1)
41public bool TryGet(string key, out string? value)
ConfigurationProvider.cs (1)
38public virtual bool TryGet(string key, out string? value)
7 references to TryGet
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostConfiguration.cs (1)
54if (provider.TryGet(key, out var value))
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostConfigurationTest.cs (1)
56provider.TryGet("type", out var value);
Microsoft.Extensions.AmbientMetadata.Application.Tests (2)
ApplicationMetadataSourceTests.cs (2)
59var result = provider.TryGet($"{testSectionName}:{nameof(ApplicationMetadata.EnvironmentName)}", out var actualEnvironmentName); 63result = provider.TryGet($"{testSectionName}:{nameof(ApplicationMetadata.ApplicationName)}", out var actualApplicationName);
Microsoft.Extensions.Configuration (2)
ConfigurationRoot.cs (1)
120if (provider.TryGet(key, out string? value))
ConfigurationSectionDebugView.cs (1)
75if (provider.TryGet(key, out _))
Microsoft.Extensions.Configuration.Abstractions (1)
ConfigurationRootExtensions.cs (1)
87if (provider.TryGet(key, out string? value))