Share via


ControlPersister.PersistInnerProperties 方法

定義

取得可以保存指定控制項內部屬性的資料字串。

多載

PersistInnerProperties(Object, IDesignerHost)

取得可以保存指定控制項內部屬性的資料字串。

PersistInnerProperties(TextWriter, Object, IDesignerHost)

使用指定的設計工具主應用程式,輸出可以將指定控制項內部屬性保存至指定 TextWriter 的資料字串。

PersistInnerProperties(Object, IDesignerHost)

取得可以保存指定控制項內部屬性的資料字串。

public:
 static System::String ^ PersistInnerProperties(System::Object ^ component, System::ComponentModel::Design::IDesignerHost ^ host);
public static string PersistInnerProperties (object component, System.ComponentModel.Design.IDesignerHost host);
static member PersistInnerProperties : obj * System.ComponentModel.Design.IDesignerHost -> string
Public Shared Function PersistInnerProperties (component As Object, host As IDesignerHost) As String

參數

component
Object

要保存內部屬性的元件。

host
IDesignerHost

IDesignerHost,為控制項的設計工具主應用程式。

傳回

String

字串,包含控制項內部屬性的保存資訊。

備註

這個方法需要 IDesignerHost 實作才能正常運作。

另請參閱

適用於

PersistInnerProperties(TextWriter, Object, IDesignerHost)

使用指定的設計工具主應用程式,輸出可以將指定控制項內部屬性保存至指定 TextWriter 的資料字串。

public:
 static void PersistInnerProperties(System::IO::TextWriter ^ sw, System::Object ^ component, System::ComponentModel::Design::IDesignerHost ^ host);
public static void PersistInnerProperties (System.IO.TextWriter sw, object component, System.ComponentModel.Design.IDesignerHost host);
static member PersistInnerProperties : System.IO.TextWriter * obj * System.ComponentModel.Design.IDesignerHost -> unit
Public Shared Sub PersistInnerProperties (sw As TextWriter, component As Object, host As IDesignerHost)

參數

sw
TextWriter

要使用的 TextWriter

component
Object

要保存的元件。

host
IDesignerHost

IDesignerHost,為控制項的設計工具主應用程式。

備註

這個方法需要 IDesignerHost 實作才能正常運作。

適用於