CodeDomSerializerBase.SerializeProperty 方法

定义

序列化给定对象上的属性。

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)

参数

statements
CodeStatementCollection

要将属性序列化为的 CodeStatementCollection

value
Object

要在其上序列化属性的对象。

propertyToSerialize
PropertyDescriptor

要序列化的属性。

例外

managervaluestatementspropertyToSerializenull

注解

方法 SerializeProperty 检索 MemberCodeDomSerializer 参数的 propertyToSerialize 并委托给它。

SerializePropertystatementspropertyToSerialize 参数放在 上 ContextStack

适用于

另请参阅