ConfigurationSettings.GetConfig(String) メソッド

定義

注意事項

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

渡された構成セクションの名前とパスの ConfigurationSection オブジェクトを返します。

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

パラメーター

sectionName
String

構成名とパス ("system.net/settings" など)。

返品

渡された構成セクションの名前とパスの ConfigurationSection オブジェクト。

属性

例外

要求されたセクションを取得できません。

注釈

このメソッドは古く、旧バージョンとの互換性のために保持されています。 代わりに ConfigurationManager.GetSection(String) メソッドを使用してください。

適用対象

こちらもご覧ください