CodeDomSerializerBase::SerializeProperties Method (IDesignerSerializationManager^, CodeStatementCollection^, Object^, array<Attribute^>^)
.NET Framework (current version)
Serializes the properties on the given object into the given statement collection.
Assembly: System.Design (in System.Design.dll)
protected: void SerializeProperties( IDesignerSerializationManager^ manager, CodeStatementCollection^ statements, Object^ value, array<Attribute^>^ filter )
Parameters
- manager
-
Type:
System.ComponentModel.Design.Serialization::IDesignerSerializationManager^
The IDesignerSerializationManager to use for serialization.
- statements
-
Type:
System.CodeDom::CodeStatementCollection^
The CodeStatementCollection into which the properties will be serialized.
- value
-
Type:
System::Object^
The object on which the properties will be serialized.
- filter
-
Type:
array<System::Attribute^>^
An Attribute array that filters which properties will be serialized.
| Exception | Condition |
|---|---|
| ArgumentNullException | manager, value, or statements is null. |
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.
.NET Framework
Available since 2.0
Available since 2.0
Show: