ConfigurationSection.GetSection(String) Método

Definição

Obtém uma subseção de configuração com a chave especificada.Gets a configuration sub-section with the specified key.

public:
 virtual Microsoft::Extensions::Configuration::IConfigurationSection ^ GetSection(System::String ^ key);
public Microsoft.Extensions.Configuration.IConfigurationSection GetSection (string key);
abstract member GetSection : string -> Microsoft.Extensions.Configuration.IConfigurationSection
override this.GetSection : string -> Microsoft.Extensions.Configuration.IConfigurationSection
Public Function GetSection (key As String) As IConfigurationSection

Parâmetros

key
String

A chave da seção de configuração.The key of the configuration section.

Retornos

IConfigurationSection

O IConfigurationSection.The IConfigurationSection.

Implementações

Comentários

Esse método nunca será retornado null .This method will never return null. Se nenhuma subseção correspondente for encontrada com a chave especificada, um vazio IConfigurationSection será retornado.If no matching sub-section is found with the specified key, an empty IConfigurationSection will be returned.

Aplica-se a