T
Chili.Opf3 Send comments on this topic.
Generic Reload(T,Boolean) Method
See Also 
Chili.Opf3 Namespace > ObjectContext Class > Reload Method : Generic Reload(T,Boolean) Method




obj
The persistent object that is reloaded from the storage.
ignoreCache
True to ignore the cache (if one has been set by using the CacheManager property of the ObjectContext).
Reloads the given persistent object from the storage. Returns true if the reload was successful or false if not.

Syntax

Visual Basic (Declaration) 
Overloads Public Function Reload(Of T)( _
   ByVal obj As T, _
   ByVal ignoreCache As Boolean _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As ObjectContext
Dim obj As T
Dim ignoreCache As Boolean
Dim value As Boolean
 
value = instance.Reload(Of T)(obj, ignoreCache)
C# 
public bool Reload<T>( 
   T obj,
   bool ignoreCache
)
Managed Extensions for C++ 
public: bool Reload<T>( 
   T obj,
   bool ignoreCache
) 
C++/CLI 
public:
bool Reloadgeneric<typename T>
( 
   T obj,
   bool ignoreCache
) 

Parameters

obj
The persistent object that is reloaded from the storage.
ignoreCache
True to ignore the cache (if one has been set by using the CacheManager property of the ObjectContext).

Type Parameters

T

Return Value

True if the persistent object has been reloaded sucessfully; false if not.

Requirements

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

See Also