SystemWebSectionGroup.HostingEnvironment プロパティ
アセンブリ: System.Web (system.web.dll 内)

Dim instance As SystemWebSectionGroup Dim value As HostingEnvironmentSection value = instance.HostingEnvironment
public: property HostingEnvironmentSection^ HostingEnvironment { HostingEnvironmentSection^ get (); }
HostingEnvironmentSection オブジェクトは、構成ファイルの hostingEnvironment セクションを参照します。

既存の Web アプリケーションの構成ファイルから HostingEnvironmentSection オブジェクトを取得する方法を次のコード例に示します。
' Get the hostingEnvironment section. Dim hostingEnvironment _ As HostingEnvironmentSection = _ systemWeb.HostingEnvironment ' Read section information. info = hostingEnvironment.SectionInformation name = info.SectionName type = info.Type declared = info.IsDeclared.ToString() msg = String.Format("Name: {0}" + _ ControlChars.Lf + "Declared: {1}" + _ ControlChars.Lf + "Type: {2}" + _ ControlChars.Lf, name, declared, type)
// Get the hostingEnvironment section. HostingEnvironmentSection hostingEnvironment = systemWeb.HostingEnvironment; // Read section information. info = hostingEnvironment.SectionInformation; name = info.SectionName; type = info.Type; declared = info.IsDeclared.ToString(); msg = String.Format( "Name: {0}\nDeclared: {1}\nType: {2}\n", name, declared, type);

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。


Weblioに収録されているすべての辞書からSystemWebSectionGroup.HostingEnvironment プロパティを検索する場合は、下記のリンクをクリックしてください。

- SystemWebSectionGroup.HostingEnvironment プロパティのページへのリンク