ControlPersister.PersistInnerProperties 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
會得到一串資料,可以持久化指定控制項的內部屬性。
多載
| 名稱 | Description |
|---|---|
| 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 那是控制系統的設計主機。
傳回
一個包含關於控制項內部特性資訊的字串。
備註
此方法需要實 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 作才能正確運作。