Dynamicweb 8 Documentation
GetObjectToSerialize Method

The object to substitute.
The Type that the substituted object should be assigned to.
During serialization, returns an object that substitutes the specified object.
Syntax
'Declaration
 
Public Function GetObjectToSerialize( _ 
   ByVal obj As Object, _ 
   ByVal targetType As Type _ 
) As Object
public object GetObjectToSerialize( 
   object obj,
   Type targetType 
)

Parameters

obj
The object to substitute.
targetType
The Type that the substituted object should be assigned to.

Return Value

The substituted object that will be serialized. The object must be serializable by the DataContractSerializer. For example, it must be marked with the DataContractAttribute attribute or other mechanisms that the serializer recognizes.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

ProductIndexEntrySurrogate Class
ProductIndexEntrySurrogate Members

Send Feedback