共用方式為


CodeDomSerializerBase.SerializeProperties 方法

定義

將指定物件上的屬性,序列化至指定的陳述式集合。

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

參數

statements
CodeStatementCollection

屬性將序列化為的 CodeStatementCollection

value
Object

屬性將在其上序列化的物件。

filter
Attribute[]

Attribute 陣列,可篩選要進行序列化的屬性。

例外狀況

managervaluestatementsnull

備註

方法是 SerializeProperties 衍生類別可以呼叫的協助程式方法。 它會查看符合 filter 參數的參數value屬性,然後針對每個屬性呼叫 SerializeProperty 方法。

方法會將 SerializePropertiesvalue 放在 InheritanceAttributeContextStack

適用於

另請參閱