DevForce Help Reference
DefaultMode Property


This property is used to control the mechanism that DevForce uses to serialize entity graphs. This is a static property that determines the 'default' serialization behavior. The SerializationContext.ThreadLocalMode will supercede this property if it is set to any value other than SerializationContextMode.Default. See SerializationContextMode.
Syntax
'Declaration
 
Public Shared Property DefaultMode As SerializationContextMode
'Usage
 
Dim value As SerializationContextMode
 
SerializationContext.DefaultMode = value
 
value = SerializationContext.DefaultMode
public static SerializationContextMode DefaultMode {get; set;}
Remarks
This property will normally not need to be set. It should only be needed if stack overflow exceptions are occuring during entity graph serialization operations. If this occurs this property can be set to SerializationContextMode.Alternate.
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

SerializationContext Class
SerializationContext Members

Send Feedback