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 派生类可以调用的帮助程序方法。 它会查看参数上 value 与 参数匹配的属性 filter ,然后为每个属性调用 SerializeProperty 方法。

方法 SerializePropertiesInheritanceAttributevalue 放在 上 ContextStack

适用于

另请参阅