ConfigurationRootExtensions.GetDebugView Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
GetDebugView(IConfigurationRoot) |
Generates a human-readable view of the configuration showing where each value came from. |
GetDebugView(IConfigurationRoot, Func<ConfigurationDebugViewContext,String>) |
Generates a human-readable view of the configuration showing where each value came from. |
GetDebugView(IConfigurationRoot)
Generates a human-readable view of the configuration showing where each value came from.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetDebugView(Microsoft::Extensions::Configuration::IConfigurationRoot ^ root);
public static string GetDebugView (this Microsoft.Extensions.Configuration.IConfigurationRoot root);
static member GetDebugView : Microsoft.Extensions.Configuration.IConfigurationRoot -> string
<Extension()>
Public Function GetDebugView (root As IConfigurationRoot) As String
Parameters
- root
- IConfigurationRoot
Returns
The debug view.
Applies to
GetDebugView(IConfigurationRoot, Func<ConfigurationDebugViewContext,String>)
Generates a human-readable view of the configuration showing where each value came from.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetDebugView(Microsoft::Extensions::Configuration::IConfigurationRoot ^ root, Func<Microsoft::Extensions::Configuration::ConfigurationDebugViewContext, System::String ^> ^ processValue);
public static string GetDebugView (this Microsoft.Extensions.Configuration.IConfigurationRoot root, Func<Microsoft.Extensions.Configuration.ConfigurationDebugViewContext,string>? processValue);
static member GetDebugView : Microsoft.Extensions.Configuration.IConfigurationRoot * Func<Microsoft.Extensions.Configuration.ConfigurationDebugViewContext, string> -> string
<Extension()>
Public Function GetDebugView (root As IConfigurationRoot, processValue As Func(Of ConfigurationDebugViewContext, String)) As String
Parameters
- root
- IConfigurationRoot
The configuration root.
- processValue
- Func<ConfigurationDebugViewContext,String>
A function for processing the value, for example, to hide secrets, where the ConfigurationDebugViewContext represents the context of the current configuration item, and the string is assigned as the value of the configuration section.
Returns
The debug view.
Applies to
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για