CodeDomSerializerBase.SerializeCreationExpression Method (IDesignerSerializationManager, Object, Boolean)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com 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
)

Parameters

manager
Type: System.ComponentModel.Design.Serialization.IDesignerSerializationManager

The IDesignerSerializationManager to use for serialization.

value
Type: System.Object

The object to serialize.

isComplete
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
ArgumentNullException

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
Show: