共用方式為


CodeDomSerializer.SerializePropertiesToResources 方法

定義

將指定的屬性序列化為資源。

protected:
 void SerializePropertiesToResources(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeStatementCollection ^ statements, System::Object ^ value, cli::array <Attribute ^> ^ filter);
protected void SerializePropertiesToResources (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatementCollection statements, object value, Attribute[] filter);
member this.SerializePropertiesToResources : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeStatementCollection * obj * Attribute[] -> unit
Protected Sub SerializePropertiesToResources (manager As IDesignerSerializationManager, statements As CodeStatementCollection, value As Object, filter As Attribute())

參數

manager
IDesignerSerializationManager

要在序列化期間使用的序列化管理員。

statements
CodeStatementCollection

要在序列化期間使用的陳述式集合。 資源序列化程式會使用此項目來寫入資源建立陳述式,但不會有個別的屬性指派陳述式,因為所有屬性都會序列化為資源。

value
Object

要為其還原序列化屬性的物件。

filter
Attribute[]

要套用至屬性的選擇性篩選。

適用於