ControlPersister.PersistControl Yöntem
Tanım
Önemli
Bazı bilgiler ürünün ön sürümüyle ilgilidir ve sürüm öncesinde önemli değişiklikler yapılmış olabilir. Burada verilen bilgilerle ilgili olarak Microsoft açık veya zımni hiçbir garanti vermez.
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
Döndürülenler
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.
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
- host
- IDesignerHost
IDesignerHost Denetimin tasarımcı konağı olan bir.
Döndürülenler
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.
- 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.