Click or drag to resize
Properties Class

Note: This API is now obsolete.

Provides a collection of properties, each of which is a key/value pair. Each key is a string, and the value may be a string or an integer.
Inheritance Hierarchy
SystemObject
  [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Properties>]
    GemStone.GemFire.CacheProperties

Namespace: GemStone.GemFire.Cache
Assembly: Gemstone.Gemfire.Cache (in Gemstone.Gemfire.Cache.dll) Version: 9.0.6.18
Syntax
[SerializableAttribute]
[ObsoleteAttribute("Use classes and APIs from the GemStone.GemFire.Cache.Generic namespace")]
public sealed class Properties : [T:GemStone.GemFire.Cache.Internal.SBWrap<gemfire::Properties>], 
	IGFSerializable, ISerializable

The Properties type exposes the following members.

Constructors
  NameDescription
Public methodProperties
Default constructor: returns an empty collection.
Top
Properties
  NameDescription
Public propertyClassId
Returns the classId of this class for serialization.
Public propertyNativeIntPtr
Get the underlying native unmanaged pointer.
Public propertyObjectSize
return the size of this object in bytes
Public propertySize
Return the number of entries in the collection.
Top
Methods
  NameDescription
Public methodAddAll
Adds the contents of other to this instance, replacing any existing values with those from other.
Public methodStatic memberConvertCacheableString
Public methodStatic memberConvertCacheableStringKey
Public methodStatic memberCreate
Factory method to create an empty collection of properties.
Public methodStatic memberCreateFromVoidPtr
Internal factory function to wrap a native object pointer inside this managed class with null pointer check.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Public methodFind(String)
Return the value for the given key, or NULL if not found.
Public methodFind(CacheableKey)
Return the value for the given CacheableKey, or NULL if not found.
Public methodFind(ICacheableKey)
Return the value for the given ICacheableKey, or NULL if not found.
Public methodForEach
Execute the Visitor delegate for each entry in the collection.
Public methodFromData
Deserializes this Properties object.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetObjectData
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert(String, Int32)
Add or update the int value for key.
Public methodInsert(String, String)
Add or update the string value for key.
Public methodInsert(CacheableKey, IGFSerializable)
Add or update IGFSerializable value for CacheableKey.
Public methodInsert(CacheableKey, Serializable)
Add or update Serializable value for CacheableKey.
Public methodInsert(ICacheableKey, IGFSerializable)
Add or update IGFSerializable value for ICacheableKey.
Public methodInsert(ICacheableKey, Serializable)
Add or update Serializable value for ICacheableKey.
Public methodLoad
Reads property values from a file, overriding what is currently in the properties object.
Public methodRemove(String)
Remove the key from the collection.
Public methodRemove(CacheableKey)
Remove the given CacheableKey from the collection.
Public methodRemove(ICacheableKey)
Remove the given ICacheableKey from the collection.
Public methodToData
Serializes this Properties object.
Public methodToString
Returns a string representation of the current Properties object.
(Overrides ObjectToString.)
Top
See Also