ערוך

שתף באמצעות


CodeDomSerializerBase.SerializeProperties Method

Definition

Serializes the properties on the given object into the given statement collection.

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())

Parameters

manager
IDesignerSerializationManager

The IDesignerSerializationManager to use for serialization.

statements
CodeStatementCollection

The CodeStatementCollection into which the properties will be serialized.

value
Object

The object on which the properties will be serialized.

filter
Attribute[]

An Attribute array that filters which properties will be serialized.

Exceptions

manager, value, or statements is null.

Remarks

The SerializeProperties method is a helper method that derived classes can call. It looks at properties on the value parameter that match the filter parameter, and then it calls the SerializeProperty method for each property.

The SerializeProperties method places the InheritanceAttribute for value on the ContextStack.

Applies to

See also