ControlPersister.PersistControl Yöntem

Tanım

Belirtilen denetimin kalıcı biçimini temsil eden bir veri dizesi alır.

Aşırı Yüklemeler

PersistControl(Control)

Belirtilen denetimin kalıcı biçimini temsil eden bir veri dizesi alır.

PersistControl(TextWriter, Control)

Belirtilen denetimin kalıcı biçimini belirtilen TextWriteröğesine temsil eden bir veri dizesi verir.

PersistControl(Control, IDesignerHost)

Belirtilen tasarımcı ana bilgisayarını kullanarak belirtilen denetimin kalıcı biçimini temsil eden bir veri dizesi alır.

PersistControl(TextWriter, Control, IDesignerHost)

Belirtilen tasarımcı ana bilgisayarını kullanarak belirtilen denetimin kalıcı biçimini belirtilen TextWriteröğesine temsil eden bir veri dizesi verir.

PersistControl(Control)

Belirtilen denetimin kalıcı biçimini temsil eden bir veri dizesi alır.

public:
 static System::String ^ PersistControl(System::Web::UI::Control ^ control);
public static string PersistControl (System.Web.UI.Control control);
static member PersistControl : System.Web.UI.Control -> string
Public Shared Function PersistControl (control As Control) As String

Parametreler

control
Control

kalıcı Control hale getirmek için.

Döndürülenler

String

Denetimin kalıcı biçimini temsil eden bir dize.

Örnekler

// Parse the selected control.
String^ persistedData = ControlPersister::PersistControl( controlArray[ selectionForm->controlList->SelectedIndex ] );
// Parse the selected control into a persistence string.
string persistedData = ControlPersister.PersistControl(
    controlArray[selectionForm.controlList.SelectedIndex]);
' Parse the selected control.
Dim persistedData As String = ControlPersister.PersistControl( _
    controlArray(selectionForm.controlList.SelectedIndex))

Açıklamalar

Bu yöntem, bir IDesignerHost uygulamanın düzgün çalışmasını gerektirir. Bu yöntem, tasarımcı ana bilgisayarını almak için belirtilen denetimin öğesini kullanır Site .

Şunlara uygulanır

PersistControl(TextWriter, Control)

Belirtilen denetimin kalıcı biçimini belirtilen TextWriteröğesine temsil eden bir veri dizesi verir.

public:
 static void PersistControl(System::IO::TextWriter ^ sw, System::Web::UI::Control ^ control);
public static void PersistControl (System.IO.TextWriter sw, System.Web.UI.Control control);
static member PersistControl : System.IO.TextWriter * System.Web.UI.Control -> unit
Public Shared Sub PersistControl (sw As TextWriter, control As Control)

Parametreler

sw
TextWriter

TextWriter kalıcı denetim verilerinin çıkışını almak için.

control
Control

kalıcı Control hale getirmek için.

Açıklamalar

Bu yöntem, bir IDesignerHost uygulamanın düzgün çalışmasını gerektirir. Bu yöntem, tasarımcı ana bilgisayarını almak için belirtilen denetimin öğesini kullanır Site .

Şunlara uygulanır

PersistControl(Control, IDesignerHost)

Belirtilen tasarımcı ana bilgisayarını kullanarak belirtilen denetimin kalıcı biçimini temsil eden bir veri dizesi alır.

public:
 static System::String ^ PersistControl(System::Web::UI::Control ^ control, System::ComponentModel::Design::IDesignerHost ^ host);
public static string PersistControl (System.Web.UI.Control control, System.ComponentModel.Design.IDesignerHost host);
static member PersistControl : System.Web.UI.Control * System.ComponentModel.Design.IDesignerHost -> string
Public Shared Function PersistControl (control As Control, host As IDesignerHost) As String

Parametreler

control
Control

kalıcı Control hale getirmek için.

host
IDesignerHost

IDesignerHost Denetimin tasarımcı konağı olan bir.

Döndürülenler

String

Denetimin kalıcı biçimini temsil eden bir dize.

Örnekler

// Parse the selected control.
String^ persistedData = ControlPersister::PersistControl( controlArray[ selectionForm->controlList->SelectedIndex ] );
// Parse the selected control into a persistence string.
string persistedData = ControlPersister.PersistControl(
    controlArray[selectionForm.controlList.SelectedIndex]);
' Parse the selected control.
Dim persistedData As String = ControlPersister.PersistControl( _
    controlArray(selectionForm.controlList.SelectedIndex))

Açıklamalar

Bu yöntem, bir IDesignerHost uygulamanın düzgün çalışmasını gerektirir.

Şunlara uygulanır

PersistControl(TextWriter, Control, IDesignerHost)

Belirtilen tasarımcı ana bilgisayarını kullanarak belirtilen denetimin kalıcı biçimini belirtilen TextWriteröğesine temsil eden bir veri dizesi verir.

public:
 static void PersistControl(System::IO::TextWriter ^ sw, System::Web::UI::Control ^ control, System::ComponentModel::Design::IDesignerHost ^ host);
public static void PersistControl (System.IO.TextWriter sw, System.Web.UI.Control control, System.ComponentModel.Design.IDesignerHost host);
static member PersistControl : System.IO.TextWriter * System.Web.UI.Control * System.ComponentModel.Design.IDesignerHost -> unit
Public Shared Sub PersistControl (sw As TextWriter, control As Control, host As IDesignerHost)

Parametreler

sw
TextWriter

TextWriter kalıcı denetim verilerinin çıkışını almak için.

control
Control

kalıcı Control hale getirmek için.

host
IDesignerHost

IDesignerHost Denetimin tasarımcı konağı olan bir.

Açıklamalar

Bu yöntem, bir IDesignerHost uygulamanın düzgün çalışmasını gerektirir.

Şunlara uygulanır