CodeDomSerializerBase.SerializeProperty Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Serializes a property on the given object.
protected:
void SerializeProperty(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeStatementCollection ^ statements, System::Object ^ value, System::ComponentModel::PropertyDescriptor ^ propertyToSerialize);
protected void SerializeProperty (System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatementCollection statements, object value, System.ComponentModel.PropertyDescriptor propertyToSerialize);
member this.SerializeProperty : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeStatementCollection * obj * System.ComponentModel.PropertyDescriptor -> unit
Protected Sub SerializeProperty (manager As IDesignerSerializationManager, statements As CodeStatementCollection, value As Object, propertyToSerialize As PropertyDescriptor)
Parameters
- manager
- IDesignerSerializationManager
The IDesignerSerializationManager to use for serialization.
- statements
- CodeStatementCollection
The CodeStatementCollection into which the property will be serialized.
- value
- Object
The object on which the property will be serialized.
- propertyToSerialize
- PropertyDescriptor
The property to serialize.
Exceptions
manager
, value
, statements
, or propertyToSerialize
is null
.
Remarks
The SerializeProperty method retrieves a MemberCodeDomSerializer for the propertyToSerialize
parameter and delegates to it.
SerializeProperty places the statements
and propertyToSerialize
parameters on the ContextStack.