HttpResponse.ApplyAppPathModifier メソッドとは? わかりやすく解説

Weblio 辞書 > コンピュータ > .NET Framework クラス ライブラリ リファレンス > HttpResponse.ApplyAppPathModifier メソッドの意味・解説 

HttpResponse.ApplyAppPathModifier メソッド

セッションが Cookieless セッション状態使用している場合に、セッション ID仮想パス追加し、その ID組み合わせたパス返しますCookieless セッション状態使用されていない場合ApplyAppPathModifier は元の仮想パス返します

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

Public Function ApplyAppPathModifier ( _
    virtualPath As String _
) As String
Dim instance As HttpResponse
Dim virtualPath As String
Dim returnValue As String

returnValue = instance.ApplyAppPathModifier(virtualPath)
public string ApplyAppPathModifier (
    string virtualPath
)
public:
String^ ApplyAppPathModifier (
    String^ virtualPath
)
public String ApplyAppPathModifier (
    String virtualPath
)
public function ApplyAppPathModifier (
    virtualPath : String
) : String

パラメータ

virtualPath

リソースへの仮想パス

戻り値
セッション ID挿入されvirtualPath

解説解説

ApplyAppPathModifier は、絶対 HREF作成するために cookieless セッションでだけ使用します

使用例使用例

次のコード例では、urlConverted という名前の文字列変数宣言し、そこに ApplyAppPathModifier メソッド呼び出し結果設定します次に、この変数の値を HyperLink コントロールの NavigateUrl プロパティ渡します

' Declare a string variable and set it to the result
' of a call to the ApplyAppPathModifier method.
' Then set the NavigateUrl property of a Hyperlink control
' to the string's value.
Dim urlConverted As String
 = Response.ApplyAppPathModifier("TestPage.aspx")
hlTest1.NavigateUrl = urlConverted
// Declare a string variable and set it to the result
// of a call to the ApplyAppPathModifier method.
// Then set the NavigateUrl property of a Hyperlink control
// to the string's value.
string urlConverted = Response.ApplyAppPathModifier("TestPage.aspx");
hlTest1.NavigateUrl = urlConverted;
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

HttpResponse.ApplyAppPathModifier メソッドのお隣キーワード
検索ランキング

   

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



HttpResponse.ApplyAppPathModifier メソッドのページの著作権
Weblio 辞書 情報提供元は 参加元一覧 にて確認できます。

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

©2025 GRAS Group, Inc.RSS