CodeDomSerializerBase.SerializeCreationExpression Method (IDesignerSerializationManager, Object, Boolean)


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

Returns an expression representing the creation of the given object.

Namespace:   System.ComponentModel.Design.Serialization
Assembly:  System.Design (in System.Design.dll)

protected CodeExpression SerializeCreationExpression(
	IDesignerSerializationManager manager,
	object value,
	out bool isComplete


Type: System.ComponentModel.Design.Serialization.IDesignerSerializationManager

The IDesignerSerializationManager to use for serialization.

Type: System.Object

The object to serialize.

Type: System.Boolean

true if value was fully serialized; otherwise, false.

Return Value

Type: System.CodeDom.CodeExpression

An expression representing the creation of value.

Exception Condition

manager or value is null.

The SerializeCreationExpression method can be used to serialize an expression that represents the creation of the value parameter. It is aware of instance descriptors.

The isComplete parameter is set to true if the expression represents a fully configured object, or false if further serialization must be done on the object’s properties.

.NET Framework
Available since 2.0
Return to top