Parameter.Clone メソッドとは何? わかりやすく解説 Weblio辞書

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

Parameter.Clone メソッド

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

現在の Parameter インスタンス複製返します

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

解説解説
使用例使用例

Parameter クラス拡張したクラスから Parameter(Parameter) コンストラクタ呼び出してクラスオブジェクト適切なクローン動作実装する方法次のコード例示します。このコード例は、Parameter クラストピック取り上げているコード例一部分です。

' The StaticParameter copy constructor is provided to ensure that
' the state contained in the DataValue property is copied to new
' instances of the class.
Protected Sub New(original
 As StaticParameter)
   MyBase.New(original)
   DataValue = original.DataValue
End Sub

' The Clone method is overridden to call the
' StaticParameter copy constructor, so that the data in
' the DataValue property is correctly transferred to the
' new instance of the StaticParameter.
Protected Overrides Function
 Clone() As Parameter
   Return New StaticParameter(Me)
End Function
// The StaticParameter copy constructor is provided to ensure that
// the state contained in the DataValue property is copied to new
// instances of the class.
protected StaticParameter(StaticParameter original) : base(original)
 {
  DataValue = original.DataValue;
}

// The Clone method is overridden to call the
// StaticParameter copy constructor, so that the data in
// the DataValue property is correctly transferred to the
// new instance of the StaticParameter.
protected override Parameter Clone() {
  return new StaticParameter(this);
}
// The StaticParameter copy constructor is provided to ensure that 
// the state contained in the DataValue property is copied to new
// instances of the class. 
protected StaticParameter(StaticParameter original)
{
    super(original);
    set_DataValue(original.get_DataValue());
} //StaticParameter


// The Clone method is overridden to call the 
// StaticParameter copy constructor, so that the data in 
// the DataValue property is correctly transferred to the 
// new instance of the StaticParameter.
protected Parameter Clone()
{
    return new StaticParameter(this);
} //Clone
プラットフォームプラットフォーム
バージョン情報バージョン情報
参照参照



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

辞書ショートカット

すべての辞書の索引

「Parameter.Clone メソッド」の関連用語

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

   

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



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

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

©2024 GRAS Group, Inc.RSS