WebContext コンストラクタとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > WebContext コンストラクタの意味・解説 

WebContext コンストラクタ

メモ : このコンストラクタは、.NET Framework version 2.0新しく追加されたものです。

WebContext クラス新しインスタンス作成します

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

Public Sub New ( _
    pathLevel As WebApplicationLevel, _
    site As String, _
    applicationPath As String, _
    path As String, _
    locationSubPath As String _
)
Dim pathLevel As WebApplicationLevel
Dim site As String
Dim applicationPath As String
Dim path As String
Dim locationSubPath As String

Dim instance As New WebContext(pathLevel,
 site, applicationPath, path, locationSubPath)
public WebContext (
    WebApplicationLevel pathLevel,
    string site,
    string applicationPath,
    string path,
    string locationSubPath
)
public:
WebContext (
    WebApplicationLevel pathLevel, 
    String^ site, 
    String^ applicationPath, 
    String^ path, 
    String^ locationSubPath
)
public WebContext (
    WebApplicationLevel pathLevel, 
    String site, 
    String applicationPath, 
    String path, 
    String locationSubPath
)
public function WebContext (
    pathLevel : WebApplicationLevel, 
    site : String, 
    applicationPath : String, 
    path : String, 
    locationSubPath : String
)

パラメータ

pathLevel

WebApplicationLevel オブジェクト

site

Web サイトの名前。

applicationPath

現在の Web アプリケーションルート レベルへの仮想パス

path

現在の構成オブジェクト表している Web.config ファイルへの仮想パス

locationSubPath

現在編集中location 要素パス値。

使用例使用例

WebContext コンストラクタ使用する方法次のコード例示します。このコード例は、WebContext クラストピック取り上げているコード例一部分です。

' Get the context.
Dim webContext As WebContext = config.EvaluationContext.HostingContext
// Get the context.
WebContext webContext = (WebContext)config.EvaluationContext.HostingContext;
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
WebContext クラス
WebContext メンバ
System.Web.Configuration 名前空間



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

辞書ショートカット

すべての辞書の索引

「WebContext コンストラクタ」の関連用語

WebContext コンストラクタのお隣キーワード
検索ランキング

   

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



WebContext コンストラクタのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS