ConfigurationSettings.GetConfig(String) Methode

Definitie

Let op

This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection

Retourneert het ConfigurationSection object voor de doorgegeven configuratiesectienaam en het pad.

public:
 static System::Object ^ GetConfig(System::String ^ sectionName);
public static object GetConfig(string sectionName);
[System.Obsolete("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection")]
public static object GetConfig(string sectionName);
static member GetConfig : string -> obj
[<System.Obsolete("This method is obsolete, it has been replaced by System.Configuration!System.Configuration.ConfigurationManager.GetSection")>]
static member GetConfig : string -> obj
Public Shared Function GetConfig (sectionName As String) As Object

Parameters

sectionName
String

Een configuratienaam en -pad, zoals 'system.net/settings'.

Retouren

Het ConfigurationSection object voor de doorgegeven configuratiesectienaam en het pad.

Kenmerken

Uitzonderingen

Kan de aangevraagde sectie niet ophalen.

Opmerkingen

Deze methode is verouderd en blijft behouden voor achterwaartse compatibiliteit. Gebruik in plaats daarvan de ConfigurationManager.GetSection(String) methode.

Van toepassing op

Zie ook