SectionInformation.IsDeclarationRequired プロパティ
アセンブリ: System.Configuration (system.configuration.dll 内)
構文関連付けられている ConfigurationSection オブジェクトが構成ファイルで宣言される必要がある場合は true。それ以外の場合は false。
使用例構成ファイル内の関連するセクション情報にアクセスした後に IsDeclarationRequired プロパティ値を取得する方法のコード例を次に示します。
SectionInformation を取得します。
' Get the current configuration file. Dim config _ As System.Configuration.Configuration = _ ConfigurationManager.OpenExeConfiguration( _ ConfigurationUserLevel.None) ' Get the section. Dim section As UrlsSection = _ CType(config.GetSection("MyUrls"), UrlsSection) Dim sInfo As SectionInformation = _ section.SectionInformation
// Get the current configuration file. System.Configuration.Configuration config = ConfigurationManager.OpenExeConfiguration( ConfigurationUserLevel.None); // Get the section. UrlsSection section = (UrlsSection)config.GetSection("MyUrls"); SectionInformation sInfo = section.SectionInformation;
IsDeclarationRequired 値を取得します。
プラットフォームWindows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
参照Weblioに収録されているすべての辞書からSectionInformation.IsDeclarationRequired プロパティを検索する場合は、下記のリンクをクリックしてください。
全ての辞書からSectionInformation.IsDeclarationRequired プロパティ
を検索
- SectionInformation.IsDeclarationRequired プロパティのページへのリンク