Chili.Opf3 Send comments on this topic.
IsNewObjectContextRequired Method
See Also 
Chili.Opf3 Namespace > PerThreadObjectContextFactoryPolicy Class : IsNewObjectContextRequired Method




Returns whether a new ObjectContext instance is required.

Syntax

Visual Basic (Declaration) 
Overrides Protected Function IsNewObjectContextRequired() As Boolean
Visual Basic (Usage)Copy Code
Dim instance As PerThreadObjectContextFactoryPolicy
Dim value As Boolean
 
value = instance.IsNewObjectContextRequired()
C# 
protected override bool IsNewObjectContextRequired()
Managed Extensions for C++ 
protected: bool IsNewObjectContextRequired(); override 
C++/CLI 
protected:
bool IsNewObjectContextRequired(); override 

Return Value

True if a new instance is required; false otherwise.

Requirements

Platforms: Windows 2000, Windows XP family, Windows Server 2003 family, Windows Vista family

See Also