CodeDomSerializerBase::SerializeCreationExpression Method (IDesignerSerializationManager^, Object^, Boolean%)

 

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,
	[OutAttribute] 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: