ControlPersister.PersistControl 메서드

정의

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

오버로드

Name Description
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 지속할 수 있습니다.

반품

컨트롤의 지속형 형식을 나타내는 문자열입니다.

예제

// 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 컨트롤의 디자이너 호스트입니다.

반품

컨트롤의 지속형 형식을 나타내는 문자열입니다.

예제

// 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 올바르게 작동해야 합니다.

적용 대상