ערוך

שתף באמצעות


CodeDomSerializerBase.SerializeProperty Method

Definition

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.

Applies to

See also