Share via


AxdBaseProperty.unpack Method [AX 2012]

Deserializes the packedClass parameter value to an instance of the AxdBaseProperty class.

Syntax

public boolean unpack(container packedClass)

Run On

Called

Parameters

  • packedClass
    Type: container
    The container from which to deserialize the instance.

Return Value

Type: boolean
true if deserialization was successful; otherwise, false.

Examples

AxdBaseProperty axdBaseProperty = AxdBaseProperty::construct(); 
Container pack; 
/* Serialize the class */ 
pack = axdBaseProperty.pack(); 
/* De-serialize the class */ 
axdBaseProperty.unpack(pack);  
/* Construct and de-serialize the class */ 
axdBaseProperty = AxdBaseProperty::create(pack);

See Also

AxdBaseProperty Class

AxdBaseProperty.pack Method

AxdBaseProperty::create Method

Pack-Unpack Design Pattern