次の方法で共有


HttpWorkerRequest.GetServerVariable メソッド

要求に関連付けられたサーバー変数のディクショナリから、単一のサーバー変数を返します。

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

構文

'宣言
Public Overridable Function GetServerVariable ( _
    name As String _
) As String
'使用
Dim instance As HttpWorkerRequest
Dim name As String
Dim returnValue As String

returnValue = instance.GetServerVariable(name)
public virtual string GetServerVariable (
    string name
)
public:
virtual String^ GetServerVariable (
    String^ name
)
public String GetServerVariable (
    String name
)
public function GetServerVariable (
    name : String
) : String
適用できません。

パラメータ

  • name
    要求されたサーバー変数の名前。

戻り値

要求されたサーバー変数。

プラットフォーム

Windows 98,Windows Server 2000 SP4,Windows CE,Windows Millennium Edition,Windows Mobile for Pocket PC,Windows Mobile for Smartphone,Windows Server 2003,Windows XP Media Center Edition,Windows XP Professional x64 Edition,Windows XP SP2,Windows XP Starter Edition

Microsoft .NET Framework 3.0 は Windows Vista,Microsoft Windows XP SP2,および Windows Server 2003 SP1 でサポートされています。

バージョン情報

.NET Framework

サポート対象 : 3.0,2.0,1.1,1.0

参照

関連項目

HttpWorkerRequest クラス
HttpWorkerRequest メンバ
System.Web 名前空間