共用方式為


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

備註

方法 SerializePropertyMemberCodeDomSerializer 擷取 參數的 propertyToSerialize ,並委派給它。

SerializeProperty 會將 statementspropertyToSerialize 參數放在上 ContextStack

適用於

另請參閱