A mutable generic Object wrapper that can serve as a distributable value for caching.

Namespace: GemStone.GemFire.Cache
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll) Version: 8.2.4.0

Syntax

         
 C#  Visual Basic  Visual C++ 
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public class CacheableObjectXml : IGFSerializable
<ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")> _
Public Class CacheableObjectXml _
	Implements IGFSerializable
[ObsoleteAttribute(L"Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public ref class CacheableObjectXml : IGFSerializable

Members

         
 All Members  Properties   Methods  
 Public

 Protected
 Instance

 Static 
 Declared

 Inherited
 XNA Framework Only 

 .NET Compact Framework Only 

 MemberDescription
ClassId
Returns the classId of the instance being serialized. This is used by deserialization to determine what instance type to create and deserialize into.
Create(Object)
Static function to create a new instance from the given object.
CreateDeserializable()()()()
Factory function to register this class.
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Finalize()()()()
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
FromData(DataInput)
Deserializes the Object using XmlSerializer class.
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
ObjectSize
return the size of this object in bytes
ToData(DataOutput)
Serializes this Object using XmlSerializer class.
ToString()()()() (Overrides Object..::..ToString()()()().)
Value
Gets the object value.

Remarks

This class can contain any object and uses the XmlSerializer to serialize and deserialize the object. So the user must use the XmlSerializer attributes to control the serialization/deserialization of the object (or implement the IXmlSerializable) to change the serialization/deserialization. However, the latter should be avoided for efficiency reasons and the user should implement IGFSerializable instead.

The user must keep in mind that the rules that apply to XmlSerializer would be the rules that apply to this class. For instance the user cannot pass objects of class implementing or containing IDictionary class, must use XmlIncludeAttribute to mark user-defined types etc.

Inheritance Hierarchy

System..::..Object
  GemStone.GemFire.Cache..::..CacheableObjectXml

See Also