CodeDomSerializerBase.SerializeProperties Metodo

Definizione

Serializza le proprietà sull'oggetto indicato 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);
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

Classe IDesignerSerializationManager da utilizzare per la serializzazione.

statements
CodeStatementCollection

Oggetto CodeStatementCollection in cui le proprietà saranno serializzate.

value
Object

Oggetto in cui le proprietà saranno serializzate.

filter
Attribute[]

Matrice Attribute che filtra le proprietà che saranno serializzate.

Eccezioni

manager, value o statements è null.

Commenti

Il SerializeProperties metodo è un metodo helper che le classi derivate possono chiamare. Esamina le proprietà del 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 su ContextStack.

Si applica a

Vedi anche