指定したコントロールの永続化形式を表すデータの文字列を取得します。
オーバーロードの一覧
指定したコントロールの永続化形式を表すデータの文字列を取得します。
[Visual Basic] Overloads Public Shared Function PersistControl(Control) As String
[JScript] public static function PersistControl(Control) : String;
指定したデザイナ ホストを使用して、指定したコントロールのを永続化形式を表すデータの文字列を取得します。
[Visual Basic] Overloads Public Shared Function PersistControl(Control, IDesignerHost) As String
[C#] public static string PersistControl(Control, IDesignerHost);
[C++] public: static String* PersistControl(Control*, IDesignerHost*);
[JScript] public static function PersistControl(Control, IDesignerHost) : String;
指定したコントロールの永続化形式を表すデータの文字列を、指定した TextWriter に出力します。
[Visual Basic] Overloads Public Shared Sub PersistControl(TextWriter, Control)
[C#] public static void PersistControl(TextWriter, Control);
[C++] public: static void PersistControl(TextWriter*, Control*);
[JScript] public static function PersistControl(TextWriter, Control);
指定したデザイナ ホストを使用して、指定したコントロールの永続化形式を表すデータの文字列を指定した TextWriter に出力します。
[Visual Basic] Overloads Public Shared Sub PersistControl(TextWriter, Control, IDesignerHost)
[C#] public static void PersistControl(TextWriter, Control, IDesignerHost);
[C++] public: static void PersistControl(TextWriter*, Control*, IDesignerHost*);
[JScript] public static function PersistControl(TextWriter, Control, IDesignerHost);
使用例
[Visual Basic, C#, C++] メモ ここでは、PersistControl のオーバーロード形式のうちの 1 つだけについて、使用例を示します。その他の例については、各オーバーロード形式のトピックを参照してください。
' Parse the selected control.
Dim persistedData As String = ControlPersister.PersistControl( _
controlArray(selectionForm.controlList.SelectedIndex))
[C#]
// Parse the selected control.
string persistedData = ControlPersister.PersistControl(
controlArray[selectionForm.controlList.SelectedIndex]);
[C++]
// Parse the selected control.
String* persistedData =
ControlPersister::PersistControl( controlArray[selectionForm->controlList->SelectedIndex]);
[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン
をクリックします。
参照
ControlPersister クラス | ControlPersister メンバ | System.Web.UI.Design 名前空間