Apache Geode Native .NET Reference 1.15.0
|
Provides a collection of properties, each of which is a key/value pair. More...
#include <Properties.hpp>
Inherits Apache::Geode::Client::IDataSerializablePrimitive.
Public Member Functions | |
TPropValue | Find (TPropKey key) |
Return the value for the given key, or NULL if not found. More... | |
void | ForEach (PropertyVisitorGeneric< TPropKey, TPropValue >^ visitor) |
Execute the Visitor delegate for each entry in the collection. More... | |
virtual void | FromData (DataInput^ input) |
Deserializes this Properties object. More... | |
void | Insert (TPropKey key, TPropValue value) |
Add or update the string value for key. More... | |
void | Load (String^ fileName) |
Reads property values from a file, overriding what is currently in the properties object. More... | |
Properties () | |
Default constructor: returns an empty collection. More... | |
void | Remove (TPropKey key) |
Remove the key from the collection. More... | |
virtual void | ToData (DataOutput^ output) |
Serializes this Properties object. More... | |
virtual String ^ | ToString () override |
Returns a string representation of the current Properties object. More... | |
Static Public Member Functions | |
static Properties< TPropKey, TPropValue > ^ | Create () |
Factory method to create an empty collection of properties. More... | |
Properties | |
virtual System::UInt64 | ObjectSize [get] |
return the size of this object in bytes More... | |
System::UInt32 | Size [get] |
Return the number of entries in the collection. More... | |
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.
|
inline |
Default constructor: returns an empty collection.
|
inlinestatic |
Factory method to create an empty collection of properties.
TPropValue Apache::Geode::Client::Properties< TPropKey, TPropValue >::Find | ( | TPropKey | key | ) |
Return the value for the given key, or NULL if not found.
key | the key to find |
NullPointerException | if the key is null |
void Apache::Geode::Client::Properties< TPropKey, TPropValue >::ForEach | ( | PropertyVisitorGeneric< TPropKey, TPropValue >^ | visitor | ) |
Execute the Visitor delegate for each entry in the collection.
visitor | visitor delegate |
|
virtual |
Deserializes this Properties object.
input | the DataInput stream to use for reading data |
void Apache::Geode::Client::Properties< TPropKey, TPropValue >::Insert | ( | TPropKey | key, |
TPropValue | value | ||
) |
Add or update the string value for key.
key | the key to insert |
value | the string value to insert |
NullPointerException | if the key is null |
void Apache::Geode::Client::Properties< TPropKey, TPropValue >::Load | ( | String^ | fileName | ) |
Reads property values from a file, overriding what is currently in the properties object.
fileName | the name of the file |
void Apache::Geode::Client::Properties< TPropKey, TPropValue >::Remove | ( | TPropKey | key | ) |
Remove the key from the collection.
key | the key to remove |
NullPointerException | if the key is null |
|
virtual |
Serializes this Properties object.
output | the DataOutput stream to use for serialization |
|
overridevirtual |
Returns a string representation of the current Properties
object.
Implements Apache::Geode::Client::ISerializable.
|
get |
return the size of this object in bytes
|
get |
Return the number of entries in the collection.