ContextInformation.HostingContext プロパティとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > ContextInformation.HostingContext プロパティの意味・解説 

ContextInformation.HostingContext プロパティ

メモ : このプロパティは、.NET Framework version 2.0新しく追加されたものです。

構成プロパティ評価される環境コンテキスト取得します

名前空間: System.Configuration
アセンブリ: System.Configuration (system.configuration.dll 内)
構文構文

Dim instance As ContextInformation
Dim value As Object

value = instance.HostingContext
public Object HostingContext { get; }
public:
property Object^ HostingContext {
    Object^ get ();
}
/** @property */
public Object get_HostingContext ()
public function get HostingContext
 () : Object

プロパティ
構成プロパティ評価される環境を示すオブジェクト

解説解説

HostingContext使用できる値は、WebContext、ExeContext、または null 参照 (Visual Basic では Nothing) です。

使用例使用例

HostingContext プロパティ使用する方法次のコード例示します

' Create an object based on HostingContext.
Dim myWC As WebContext = _
  config.EvaluationContext.HostingContext
' Use the WebContext object to determine
' the ApplicationLevel.
Console.WriteLine("ApplicationLevel: {0}", _
  myWC.ApplicationLevel)
// Create an object based on HostingContext.
WebContext myWC =
  (WebContext)config.EvaluationContext.HostingContext;
// Use the WebContext object to determine
// the ApplicationLevel.
Console.WriteLine("ApplicationLevel: {0}",
  myWC.ApplicationLevel);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ContextInformation クラス
ContextInformation メンバ
System.Configuration 名前空間
WebContext
ExeContext



英和和英テキスト翻訳>> Weblio翻訳
英語⇒日本語日本語⇒英語
  

辞書ショートカット

すべての辞書の索引

「ContextInformation.HostingContext プロパティ」の関連用語

ContextInformation.HostingContext プロパティのお隣キーワード
検索ランキング

   

英語⇒日本語
日本語⇒英語
   



ContextInformation.HostingContext プロパティのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

   
日本マイクロソフト株式会社日本マイクロソフト株式会社
© 2024 Microsoft.All rights reserved.

©2024 GRAS Group, Inc.RSS