ControlParameterとは? わかりやすく解説

ControlParameter クラス

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

Control のプロパティの値を、パラメータ オブジェクトにバインドします。

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

Public Class ControlParameter
    Inherits Parameter
Dim instance As ControlParameter
public class ControlParameter : Parameter
public ref class ControlParameter : public
 Parameter
public class ControlParameter extends Parameter
public class ControlParameter extends
 Parameter
解説解説
使用例使用例

次のコード例では、ControlParameter オブジェクトを使用して、ListBox コントロール内に表示されるデータを、宣言シナリオの DropDownList コントロールの選択した値にバインドする方法を示します。ControlParameter オブジェクトは、フォームの SqlDataSource コントロールの SelectParameters コレクションに追加され、SelectCommand プロパティの "@Title" プレースホルダ テキストに対応します。

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML
 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <body>
    <form runat="server">

      <p><asp:dropdownlist
          id="DropDownList1"
          runat="server"
          autopostback="True">
          <asp:listitem selected>Sales Representative</asp:listitem>
          <asp:listitem>Sales Manager</asp:listitem>
          <asp:listitem>Vice President, Sales</asp:listitem>
      </asp:dropdownlist></p>

      <asp:sqldatasource
          id="SqlDataSource1"
          runat="server"
          connectionstring="<%$ ConnectionStrings:MyNorthwind%>"
          selectcommand="SELECT LastName FROM Employees WHERE
 Title = @Title">
          <selectparameters>
              <asp:controlparameter name="Title"
 controlid="DropDownList1" propertyname="SelectedValue"/>
          </selectparameters>
      </asp:sqldatasource>

      <p><asp:listbox
          id="ListBox1"
          runat="server"
          datasourceid="SqlDataSource1"
          datatextfield="LastName">
      </asp:listbox></p>

    </form>
  </body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
  <body>
    <form runat="server">

      <p><asp:dropdownlist
          id="DropDownList1"
          runat="server"
          autopostback="True">
          <asp:listitem selected>Sales Representative</asp:listitem>
          <asp:listitem>Sales Manager</asp:listitem>
          <asp:listitem>Vice President, Sales</asp:listitem>
      </asp:dropdownlist></p>

      <asp:sqldatasource
          id="SqlDataSource1"
          runat="server"
          connectionstring="<%$ ConnectionStrings:MyNorthwind%>"
          selectcommand="SELECT LastName FROM Employees WHERE Title = @Title">
          <selectparameters>
              <asp:controlparameter name="Title" controlid="DropDownList1"
 propertyname="SelectedValue"/>
          </selectparameters>
      </asp:sqldatasource>

      <p><asp:listbox
          id="ListBox1"
          runat="server"
          datasourceid="SqlDataSource1"
          datatextfield="LastName">
      </asp:listbox></p>

    </form>
  </body>
</html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<HTML>
  <BODY>
    <FORM runat="server">

      <p><asp:DropDownList
          id="DropDownList1"
          runat="server"
          AutoPostBack="True">
          <asp:ListItem Selected>Sales Representative</asp:ListItem>
          <asp:ListItem>Sales Manager</asp:ListItem>
          <asp:ListItem>Vice President, Sales</asp:ListItem>
      </asp:DropDownList></p>

      <asp:SqlDataSource
          id="SqlDataSource1"
          runat="server"
          ConnectionString="Data Source=localhost;Integrated Security=SSPI;Initial
 Catalog=Northwind;"
          SelectCommand="SELECT LastName FROM Employees WHERE Title = @Title">
          <SelectParameters>
              <asp:ControlParameter Name="Title" ControlId="DropDownList1"
 PropertyName="SelectedValue"/>
          </SelectParameters>
      </asp:SqlDataSource>

      <p><asp:ListBox
          id="ListBox1"
          runat="server"
          DataSourceID="SqlDataSource1"
          DataTextField="LastName">
      </asp:ListBox></p>

    </FORM>
  </BODY>
</HTML>
.NET Framework のセキュリティ.NET Framework のセキュリティ
継承階層継承階層
System.Object
   System.Web.UI.WebControls.Parameter
    System.Web.UI.WebControls.ControlParameter
スレッド セーフスレッド セーフ
この型の public static (Visual Basic では Shared) メンバはすべて、スレッド セーフです。インスタンス メンバの場合は、スレッド セーフであるとは限りません。
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlParameter メンバ
System.Web.UI.WebControls 名前空間
CookieParameter
FormParameter
QueryStringParameter
ProfileParameter
SessionParameter

ControlParameter コンストラクタ ()

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

ControlParameter クラスの名前のない新しいインスタンスを初期化します。

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

Dim instance As New ControlParameter
public ControlParameter ()
public:
ControlParameter ()
public ControlParameter ()
public function ControlParameter ()
解説解説

ControlParameter コンストラクタで作成された ControlParameter オブジェクトは、すべてのプロパティに既定値を使用して初期化されます。ControlID プロパティおよび PropertyName プロパティは String.Empty に初期化されています。また、Name プロパティは String.Empty に初期化され、Type プロパティは TypeCode.Object に初期化されます。さらに、Direction プロパティは Input に初期化され、DefaultValue プロパティは null 参照 (Visual Basic では Nothing) に初期化されます。

使用例使用例

ControlParameter コンストラクタを使用して ControlParameter オブジェクトを作成する方法を次のコード例に示します。ControlParameter オブジェクトは、DropDownList コントロールの SelectedValue プロパティを、DataGrid コントロール内に表示されるデータを取得する、SQL パラメータ クエリにバインドします。

<%@ Page Language="VB" AutoEventWireup="false"
 CodeFile="param1avb.aspx.vb" Inherits="param1avb_aspx"
 %>
<html  >
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DropDownList
          runat="server"
          AutoPostBack="True"
          id="DropDownList1">
            <asp:ListItem Value="USA">USA</asp:ListItem>
            <asp:ListItem Value="UK">UK</asp:ListItem>
         </asp:DropDownList>

        <asp:DataGrid
          runat="server"
          id="DataGrid1" />    
    </div>
    </form>
</body>
</html>
<%@ Page Language="C#" CodeFile="param1acs.aspx.cs" Inherits="param1acs_aspx"
 %>
<html  >
<body>
    <form id="form1" runat="server">
    <div>
        <asp:DropDownList
          runat="server"
          AutoPostBack="True"
          id="DropDownList1">
            <asp:ListItem Value="USA">USA</asp:ListItem>
            <asp:ListItem Value="UK">UK</asp:ListItem>
         </asp:DropDownList>

        <asp:DataGrid
          runat="server"
          id="DataGrid1" />    
    </div>
    </form>
</body>
</html>
<%@ Page Language="VJ#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<SCRIPT runat="server">
private void Page_Load(Object sender, System.EventArgs
 e)
{
    SqlDataSource sqlSource = new SqlDataSource("Data Source=localhost;"
 
        + "Integrated Security=SSPI;Initial Catalog=Northwind;",
        "SELECT FirstName, LastName FROM Employees WHERE Country = @country;");

    ControlParameter country = new ControlParameter();
    country.set_Name("country");
    country.set_Type(System.TypeCode.String);
    country.set_ControlID("DropDownList1");
    country.set_PropertyName("SelectedValue");

    // If the DefaultValue is not set, the DataGrid does not
    // display anything on the first page load. This is because
    // on the first page load, the DropDownList has no
    // selected item, and the ControlParameter evaluates to
    // String.Empty.
    country.set_DefaultValue("USA");

    sqlSource.get_SelectParameters().Add(country);

    // Add the SqlDataSource to the page controls collection.
    get_Page().get_Controls().Add(sqlSource);

    DataGrid1.set_DataSource(sqlSource);
    DataGrid1.DataBind();
} //Page_Load
</SCRIPT>

<HTML>
    <BODY>
        <FORM runat="server">

        <asp:DropDownList
          runat="server"
          AutoPostBack="True"
          id="DropDownList1">
            <asp:ListItem Value="USA">USA</asp:ListItem>
            <asp:ListItem Value="UK">UK</asp:ListItem>
         </asp:DropDownList>

        <asp:DataGrid
          runat="server"
          id="DataGrid1" />

        </FORM>
    </BODY>
</HTML>
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlParameter クラス
ControlParameter メンバ
System.Web.UI.WebControls 名前空間

ControlParameter コンストラクタ (String, String, String)

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

指定されたプロパティ名およびバインド先のコントロールを識別するコントロール名を使用して、ControlParameter クラスの名前付きの新しいインスタンスを初期化します。

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

Public Sub New ( _
    name As String, _
    controlID As String, _
    propertyName As String _
)
Dim name As String
Dim controlID As String
Dim propertyName As String

Dim instance As New ControlParameter(name,
 controlID, propertyName)
public ControlParameter (
    string name,
    string controlID,
    string propertyName
)
public:
ControlParameter (
    String^ name, 
    String^ controlID, 
    String^ propertyName
)
public ControlParameter (
    String name, 
    String controlID, 
    String propertyName
)
public function ControlParameter (
    name : String, 
    controlID : String, 
    propertyName : String
)

パラメータ

name

パラメータの名前。

controlID

パラメータのバインド先のコントロールの名前。既定値は Empty です。

propertyName

パラメータのバインド先のコントロールのプロパティの名前。既定値は Empty です。

解説解説
使用例使用例

ControlParameter コンストラクタを使用して ControlParameter オブジェクトを作成する方法を次のコード例に示します。パラメータは、Web フォーム ページからデータベースにデータを入力するための、TextBox および DropDownList コントロールの値にバインドします。

Sub Button1_Click(ByVal sender As
 Object, ByVal e As System.EventArgs)

    ' The user has pressed the Submit button, prepare a parameterized
    ' SQL query to insert the values from the controls.
    AccessDataSource1.InsertCommand = _
    "INSERT INTO Employees (FirstName,LastName,Address,City,PostalCode,Country,ReportsTo)
 " & _
    "  VALUES (?,?,?,?,?,?,? ); "

    Dim firstName As New
 ControlParameter("FirstName", "TextBox1",
 "Text")
    AccessDataSource1.InsertParameters.Add(firstName)

    Dim lastName As New
 ControlParameter("LastName", "TextBox2",
 "Text")
    AccessDataSource1.InsertParameters.Add(lastName)

    Dim address As New ControlParameter("Address",
 "TextBox3", "Text")
    AccessDataSource1.InsertParameters.Add(address)

    Dim city As New ControlParameter("City",
 "TextBox4", "Text")
    AccessDataSource1.InsertParameters.Add(city)

    Dim postalCode As New
 ControlParameter("PostalCode", "TextBox5",
 "Text")
    AccessDataSource1.InsertParameters.Add(postalCode)

    Dim country As New ControlParameter("Country",
 "TextBox6", "Text")
    AccessDataSource1.InsertParameters.Add(country)

    Dim supervisor As New
 ControlParameter("ReportsTo", "DropDownList1",
 "SelectedValue")
    AccessDataSource1.InsertParameters.Add(supervisor)

    Try
        AccessDataSource1.Insert()
    Finally
        Button1.Visible = False
        Label9.Visible = True
    End Try

End Sub
private void Button1_Click(object sender, EventArgs
 e) {

    // The user has pressed the Submit button, prepare a parameterized
    // SQL query to insert the values from the controls.
    AccessDataSource1.InsertCommand =
    "INSERT INTO Employees (FirstName,LastName,Address,City,PostalCode,Country,ReportsTo)
 " +
    "  VALUES (?,?,?,?,?,?,? ); ";

    AccessDataSource1.InsertParameters.Add(
      new ControlParameter("FirstName", "TextBox1",
 "Text"));

    AccessDataSource1.InsertParameters.Add(
      new ControlParameter("LastName", "TextBox2",
 "Text"));

    AccessDataSource1.InsertParameters.Add(
      new ControlParameter("Address", "TextBox3",
 "Text"));

    AccessDataSource1.InsertParameters.Add(
      new ControlParameter("City", "TextBox4",
 "Text"));

    AccessDataSource1.InsertParameters.Add(
      new ControlParameter("PostalCode", "TextBox5",
 "Text"));

    AccessDataSource1.InsertParameters.Add(
      new ControlParameter("Country", "TextBox6",
 "Text"));

    AccessDataSource1.InsertParameters.Add(
      new ControlParameter("ReportsTo", "DropDownList1",
 "SelectedValue"));

    try {
        AccessDataSource1.Insert();
    }
    finally {
        Button1.Visible = false;
        Label9.Visible = true;
    }
}
private void Button1_Click(Object sender, System.EventArgs
 e)
{
    // The user has pressed the Submit button, prepare a parameterized
    // SQL query to insert the values from the controls.
    AccessDataSource1.set_InsertCommand("INSERT INTO Employees" 
        + "(FirstName,LastName,Address,City,PostalCode,Country,ReportsTo) "
 
        + "  VALUES (?,?,?,?,?,?,? ); ");
    AccessDataSource1.get_InsertParameters().Add(new ControlParameter
        ("FirstName", "TextBox1", "Text"));
    AccessDataSource1.get_InsertParameters().Add(new ControlParameter
        ("LastName", "TextBox2", "Text"));
    AccessDataSource1.get_InsertParameters().Add(new ControlParameter
        ("Address", "TextBox3", "Text"));
    AccessDataSource1.get_InsertParameters().Add(new ControlParameter
        ("City", "TextBox4", "Text"));
    AccessDataSource1.get_InsertParameters().Add(new ControlParameter
        ("PostalCode", "TextBox5", "Text"));
    AccessDataSource1.get_InsertParameters().Add(new ControlParameter
        ("Country", "TextBox6", "Text"));
    AccessDataSource1.get_InsertParameters().Add(new ControlParameter
        ("ReportsTo", "DropDownList1", "SelectedValue"));
    try {
        AccessDataSource1.Insert();
    }
    finally {
        Button1.set_Visible(false);
        Label9.set_Visible(true);
    }
} //Button1_Click
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlParameter クラス
ControlParameter メンバ
System.Web.UI.WebControls 名前空間
Name
ControlID
PropertyName

ControlParameter コンストラクタ (String, String)

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

バインド先のコントロールを識別する指定されたコントロール名を使用して、ControlParameter クラスの名前付きの新しいインスタンスを初期化します。

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

Public Sub New ( _
    name As String, _
    controlID As String _
)
Dim name As String
Dim controlID As String

Dim instance As New ControlParameter(name,
 controlID)
public ControlParameter (
    string name,
    string controlID
)
public:
ControlParameter (
    String^ name, 
    String^ controlID
)
public ControlParameter (
    String name, 
    String controlID
)
public function ControlParameter (
    name : String, 
    controlID : String
)

パラメータ

name

パラメータの名前。

controlID

パラメータのバインド先のコントロールの名前。既定値は Empty です。

解説解説
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlParameter クラス
ControlParameter メンバ
System.Web.UI.WebControls 名前空間
Name
ControlID

ControlParameter コンストラクタ (String, TypeCode, String, String)

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

指定されたプロパティ名およびバインド先のコントロールを識別するコントロール名を使用して、ControlParameter クラスの厳密に型指定された名前付きの新しいインスタンスを初期化します。

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

Public Sub New ( _
    name As String, _
    type As TypeCode, _
    controlID As String, _
    propertyName As String _
)
Dim name As String
Dim type As TypeCode
Dim controlID As String
Dim propertyName As String

Dim instance As New ControlParameter(name,
 type, controlID, propertyName)
public ControlParameter (
    string name,
    TypeCode type,
    string controlID,
    string propertyName
)
public:
ControlParameter (
    String^ name, 
    TypeCode type, 
    String^ controlID, 
    String^ propertyName
)
public ControlParameter (
    String name, 
    TypeCode type, 
    String controlID, 
    String propertyName
)
public function ControlParameter (
    name : String, 
    type : TypeCode, 
    controlID : String, 
    propertyName : String
)

パラメータ

name

パラメータの名前。

type

パラメータが表す型。既定値は Object です。

controlID

パラメータのバインド先のコントロールの名前。既定値は Empty です。

propertyName

パラメータのバインド先のコントロールのプロパティの名前。既定値は Empty です。

解説解説
使用例使用例

ControlParameter コンストラクタを使用して、2 つのControlParameter オブジェクトを作成し、それらを SqlDataSource コントロールに関連付ける方法を、次のコード例に示します。

ControlParameter country =
  new ControlParameter("country",TypeCode.String,"ListBox1"
,"SelectedValue");
sqlSource.SelectParameters.Add(country);

ControlParameter report  =
  new ControlParameter("report",TypeCode.Int16,"ListBox2"
,"SelectedValue");
sqlSource.SelectParameters.Add(report);

ControlParameter country = new ControlParameter("country",
 
    System.TypeCode.String, "ListBox1", "SelectedValue");
sqlSource.get_SelectParameters().Add(country);
ControlParameter report = new ControlParameter("report",
 
    System.TypeCode.Int16, "ListBox2", "SelectedValue");
sqlSource.get_SelectParameters().Add(report);
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlParameter クラス
ControlParameter メンバ
System.Web.UI.WebControls 名前空間
Name
Type
ControlID
PropertyName

ControlParameter コンストラクタ (ControlParameter)

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

original パラメータで指定されたインスタンスの値を使用して、ControlParameter クラスの新しいインスタンスを初期化します。

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

Protected Sub New ( _
    original As ControlParameter _
)
Dim original As ControlParameter

Dim instance As New ControlParameter(original)
protected ControlParameter (
    ControlParameter original
)
protected:
ControlParameter (
    ControlParameter^ original
)
protected ControlParameter (
    ControlParameter original
)
protected function ControlParameter (
    original : ControlParameter
)

パラメータ

original

現在のインスタンスの初期化の基になる ControlParameter。

解説解説

ControlParameter コンストラクタは、ControlParameter インスタンスのクローンを作成するための protected コピー コンストラクタです。ControlParameter オブジェクトの値 (ControlID、PropertyName、Name、Type プロパティなど) が、すべて新しいインスタンスに転送されます。

プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照
関連項目
ControlParameter クラス
ControlParameter メンバ
System.Web.UI.WebControls 名前空間
Clone

ControlParameter コンストラクタ


ControlParameter プロパティ


パブリック プロパティパブリック プロパティ

( プロテクト プロパティ も参照)
  名前 説明
パブリック プロパティ ControlID ControlParameter オブジェクトのバインド先のコントロールの名前を指定します。
パブリック プロパティ ConvertEmptyStringToNull  Parameter オブジェクトのバインド先の値が String.Empty の場合に、その値を null 参照 (Visual Basic では Nothing) に変換する必要があるかどうかを示す値を取得または設定します。 ( Parameter から継承されます。)
パブリック プロパティ DefaultValue  パラメータの既定値を指定します。Evaluate メソッドの呼び出し時に、パラメータはこの値にバインドされ、初期化前の状態に戻されます。 ( Parameter から継承されます。)
パブリック プロパティ Direction  Parameter オブジェクトを使用して値をコントロールにバインドするかどうか、またはそのコントロールを使用して値を変更できるかどうかを示します。 ( Parameter から継承されます。)
パブリック プロパティ Name  パラメータの名前を取得または設定します。 ( Parameter から継承されます。)
パブリック プロパティ PropertyName ControlParameter オブジェクトがバインドする、ControlID プロパティにより識別されるコントロールのプロパティの名前を取得または設定します。
パブリック プロパティ Size  パラメータのサイズを取得または設定します。 ( Parameter から継承されます。)
パブリック プロパティ Type  パラメータの型を取得または設定します。 ( Parameter から継承されます。)
プロテクト プロパティプロテクト プロパティ
参照参照

関連項目

ControlParameter クラス
System.Web.UI.WebControls 名前空間
CookieParameter
FormParameter
QueryStringParameter
ProfileParameter
SessionParameter

ControlParameter メソッド


パブリック メソッドパブリック メソッド

プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Clone オーバーライドされます。 現在の ControlParameter インスタンスの複製を返します。
プロテクト メソッド Evaluate オーバーライドされます。 ControlParameter オブジェクトの値を更新して返します。
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 ( Object から継承されます。)
プロテクト メソッド LoadViewState  データ ソース ビューの、以前保存したビューステートを復元します。 ( Parameter から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 ( Object から継承されます。)
プロテクト メソッド OnParameterChanged  Parameter オブジェクトを格納する ParameterCollection コレクションの OnParametersChanged メソッドを呼び出します。 ( Parameter から継承されます。)
プロテクト メソッド SaveViewState  ページがサーバーにポストバックされた時間以降に発生した、Parameter オブジェクトのビューステートへの変更を保存します。 ( Parameter から継承されます。)
プロテクト メソッド SetDirty  Parameter オブジェクトの状態がビューステートで記録されるように、このオブジェクトをマークします。 ( Parameter から継承されます。)
プロテクト メソッド TrackViewState  Parameter オブジェクトがビューステートの変更を追跡するようにします。それにより、変更をコントロールの ViewState オブジェクトに格納して、同じページに対する複数の要求にわたって永続化できます。 ( Parameter から継承されます。)
参照参照

関連項目

ControlParameter クラス
System.Web.UI.WebControls 名前空間
CookieParameter
FormParameter
QueryStringParameter
ProfileParameter
SessionParameter

ControlParameter メンバ

Control のプロパティの値を、パラメータ オブジェクトにバインドします。

ControlParameter データ型で公開されるメンバを以下の表に示します。


パブリック コンストラクタパブリック コンストラクタ
プロテクト コンストラクタプロテクト コンストラクタ
パブリック プロパティパブリック プロパティ
プロテクト プロパティプロテクト プロパティ
パブリック メソッドパブリック メソッド
プロテクト メソッドプロテクト メソッド
  名前 説明
プロテクト メソッド Clone オーバーライドされます。 現在の ControlParameter インスタンスの複製を返します。
プロテクト メソッド Evaluate オーバーライドされます。 ControlParameter オブジェクトの値を更新して返します。
プロテクト メソッド Finalize  Object がガベージ コレクションにより収集される前に、その Object がリソースを解放し、その他のクリーンアップ操作を実行できるようにします。 (Object から継承されます。)
プロテクト メソッド LoadViewState  データ ソース ビューの、以前保存したビューステートを復元します。 (Parameter から継承されます。)
プロテクト メソッド MemberwiseClone  現在の Object の簡易コピーを作成します。 (Object から継承されます。)
プロテクト メソッド OnParameterChanged  Parameter オブジェクトを格納する ParameterCollection コレクションの OnParametersChanged メソッドを呼び出します。 (Parameter から継承されます。)
プロテクト メソッド SaveViewState  ページがサーバーにポストバックされた時間以降に発生した、Parameter オブジェクトのビューステートへの変更を保存します。 (Parameter から継承されます。)
プロテクト メソッド SetDirty  Parameter オブジェクトの状態がビューステートで記録されるように、このオブジェクトをマークします。 (Parameter から継承されます。)
プロテクト メソッド TrackViewState  Parameter オブジェクトがビューステートの変更を追跡するようにします。それにより、変更をコントロールの ViewState オブジェクトに格納して、同じページに対する複数の要求にわたって永続化できます。 (Parameter から継承されます。)
参照参照

関連項目

ControlParameter クラス
System.Web.UI.WebControls 名前空間
CookieParameter
FormParameter
QueryStringParameter
ProfileParameter
SessionParameter



英和和英テキスト翻訳

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

辞書ショートカット

すべての辞書の索引

「ControlParameter」の関連用語

ControlParameterのお隣キーワード
検索ランキング

   

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



ControlParameterのページの著作権

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

©2026 GRAS Group, Inc.RSS