ConfigurationRootExtensions.GetDebugView 方法

定义

重载

GetDebugView(IConfigurationRoot)

生成可读的配置视图,其中显示每个值的来源。

GetDebugView(IConfigurationRoot, Func<ConfigurationDebugViewContext,String>)

生成可读的配置视图,其中显示每个值的来源。

GetDebugView(IConfigurationRoot)

Source:
ConfigurationRootExtensions.cs
Source:
ConfigurationRootExtensions.cs
Source:
ConfigurationRootExtensions.cs
Source:
ConfigurationRootExtensions.cs

生成可读的配置视图,其中显示每个值的来源。

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

参数

返回

调试视图。

适用于

GetDebugView(IConfigurationRoot, Func<ConfigurationDebugViewContext,String>)

Source:
ConfigurationRootExtensions.cs
Source:
ConfigurationRootExtensions.cs
Source:
ConfigurationRootExtensions.cs
Source:
ConfigurationRootExtensions.cs
Source:
ConfigurationRootExtensions.cs

生成可读的配置视图,其中显示每个值的来源。

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

参数

root
IConfigurationRoot

配置根。

processValue
Func<ConfigurationDebugViewContext,String>

用于处理值的函数,例如,用于隐藏机密,其中 ConfigurationDebugViewContext 表示当前配置项的上下文,并将字符串分配为配置节的值。

返回

调试视图。

适用于