CodeDomSerializerBase.SerializeProperties Metodo

Definizione

Serializza le proprietà sull'oggetto specificato nell'insieme di istruzioni specificato.

protected:
 void SerializeProperties(System::ComponentModel::Design::Serialization::IDesignerSerializationManager ^ manager, System::CodeDom::CodeStatementCollection ^ statements, System::Object ^ value, cli::array <Attribute ^> ^ filter);
protected void SerializeProperties(System.ComponentModel.Design.Serialization.IDesignerSerializationManager manager, System.CodeDom.CodeStatementCollection statements, object value, Attribute[] filter);
member this.SerializeProperties : System.ComponentModel.Design.Serialization.IDesignerSerializationManager * System.CodeDom.CodeStatementCollection * obj * Attribute[] -> unit
Protected Sub SerializeProperties (manager As IDesignerSerializationManager, statements As CodeStatementCollection, value As Object, filter As Attribute())

Parametri

manager
IDesignerSerializationManager

Oggetto IDesignerSerializationManager da utilizzare per la serializzazione.

statements
CodeStatementCollection

Oggetto CodeStatementCollection in cui verranno serializzate le proprietà.

value
Object

Oggetto in cui verranno serializzate le proprietà.

filter
Attribute[]

Matrice Attribute che filtra le proprietà che verranno serializzate.

Eccezioni

manager, valueo statements è null.

Commenti

Il SerializeProperties metodo è un metodo helper che le classi derivate possono chiamare. Esamina le proprietà sul value parametro che corrispondono al filter parametro e quindi chiama il SerializeProperty metodo per ogni proprietà.

Il SerializeProperties metodo inserisce l'oggetto InheritanceAttribute per value nell'oggetto ContextStack.

Si applica a

Vedi anche