DevForce Help Reference
ThreadLocalMode Field


This property is used to control the mechanism that DevForce uses to serialize entity graphs. This is a static 'ThreadLocal' property meaning that it may be set independently on each thread but is 'global' to that thread. If this property is set to SerializationContextMode.Default the the SerializationContext.DefaultMode value is to control serialization instead. See SerializationContextMode.
Syntax
'Declaration
 
<ThreadStaticAttribute()>
Public Shared ThreadLocalMode As SerializationContextMode
'Usage
 
Dim value As SerializationContextMode
 
value = SerializationContext.ThreadLocalMode
 
SerializationContext.ThreadLocalMode = value
[ThreadStatic()]
public static SerializationContextMode ThreadLocalMode
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