다음을 통해 공유


ControlPersister.PersistControl 메서드

정의

지정된 컨트롤의 유지된 폼을 나타내는 데이터 문자열을 가져옵니다.

오버로드

PersistControl(Control)

지정된 컨트롤의 유지된 폼을 나타내는 데이터 문자열을 가져옵니다.

PersistControl(TextWriter, Control)

지정된 컨트롤의 유지된 폼을 나타내는 데이터 문자열을 지정된 TextWriter에 출력합니다.

PersistControl(Control, IDesignerHost)

지정된 디자이너 호스트를 사용하여 지정된 컨트롤의 유지된 폼을 나타내는 데이터 문자열을 가져옵니다.

PersistControl(TextWriter, Control, IDesignerHost)

지정된 디자이너 호스트를 사용하여, 지정된 컨트롤의 유지된 폼을 나타내는 데이터 문자열을 TextWriter 출력합니다.

PersistControl(Control)

지정된 컨트롤의 유지된 폼을 나타내는 데이터 문자열을 가져옵니다.

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

매개 변수

control
Control

유지할 Control입니다.

반환

String

컨트롤의 유지된 폼을 나타내는 문자열을 반환합니다.

예제

// 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))

설명

이 메서드를 사용하려면 구현이 IDesignerHost 올바르게 작동해야 합니다. 이 메서드는 Site 지정된 컨트롤을 사용하여 디자이너 호스트를 검색합니다.

적용 대상

PersistControl(TextWriter, Control)

지정된 컨트롤의 유지된 폼을 나타내는 데이터 문자열을 지정된 TextWriter에 출력합니다.

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)

매개 변수

sw
TextWriter

영구 컨트롤 데이터를 출력할 TextWriter입니다.

control
Control

유지할 Control입니다.

설명

이 메서드를 사용하려면 구현이 IDesignerHost 올바르게 작동해야 합니다. 이 메서드는 Site 지정된 컨트롤을 사용하여 디자이너 호스트를 검색합니다.

적용 대상

PersistControl(Control, IDesignerHost)

지정된 디자이너 호스트를 사용하여 지정된 컨트롤의 유지된 폼을 나타내는 데이터 문자열을 가져옵니다.

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

매개 변수

control
Control

유지할 Control입니다.

host
IDesignerHost

컨트롤에 대한 디자이너 호스트인 IDesignerHost입니다.

반환

String

컨트롤의 유지된 폼을 나타내는 문자열을 반환합니다.

예제

// 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))

설명

이 메서드를 사용하려면 구현이 IDesignerHost 올바르게 작동해야 합니다.

적용 대상

PersistControl(TextWriter, Control, IDesignerHost)

지정된 디자이너 호스트를 사용하여, 지정된 컨트롤의 유지된 폼을 나타내는 데이터 문자열을 TextWriter 출력합니다.

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)

매개 변수

sw
TextWriter

영구 컨트롤 데이터를 출력할 TextWriter입니다.

control
Control

유지할 Control입니다.

host
IDesignerHost

컨트롤에 대한 디자이너 호스트인 IDesignerHost입니다.

설명

이 메서드를 사용하려면 구현이 IDesignerHost 올바르게 작동해야 합니다.

적용 대상