ParameterCollection.GetValues メソッドとは何? わかりやすく解説 Weblio辞書 (original) (raw)

メモ : このメソッドは、.NET Framework version 2.0新しく追加されたものです。

コレクションに現在格納されている Parameter オブジェクトの名前と対応する値の順序付けられたコレクション取得します

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

Visual Basic (宣言)

Public Function GetValues ( _ context As HttpContext, _ control As Control _ ) As IOrderedDictionary

Visual Basic (使用法)

Dim instance As ParameterCollection Dim context As HttpContext Dim control As Control Dim returnValue As IOrderedDictionary

returnValue = instance.GetValues(context, control)

C#

public IOrderedDictionary GetValues ( HttpContext context, Control control )

C++

public: IOrderedDictionary^ GetValues ( HttpContext^ context, Control^ control )

J#

public IOrderedDictionary GetValues ( HttpContext context, Control control )

JScript

public function GetValues ( context : HttpContext, control : Control ) : IOrderedDictionary

パラメータ

context

Parameterバインド先となる現在の HttpRequest

control

パラメータの Evaluate メソッド渡される Control インスタンス

戻り値
名前と値のペアのIOrderedDictionary。

解説解説

control パラメータは、コレクション格納されParameter オブジェクトが、Page および Parameter オブジェクトバインド先である現在の HttpRequest オブジェクト取得するために使用されます。

IOrderedDictionary オブジェクトは、一意の名前が付けられエントリを持つ必要がありますが、ParameterCollection コレクションでは、**Parameter** オブジェクト一意の名前を必要としたり、これを保証したりするわけではないため、このメソッド実装は、各 Name プロパティ末尾番号追加することによって、返されるコレクションでの一意性確保します

プラットフォームプラットフォーム

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 によってサポートされていないバージョンありますサポートされているバージョンについては、「システム要件」を参照してください

バージョン情報バージョン情報

.NET Framework
サポート対象 : 2.0

参照参照

関連項目
ParameterCollection クラス
ParameterCollection メンバ
System.Web.UI.WebControls 名前空間