VMware GemFire Native Client .NET Framework API Reference
|
VMware VMware GemFire Native .NET Reference 10.4.3
|
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. | |
| void | ForEach (PropertyVisitorGeneric< TPropKey, TPropValue >^ visitor) |
| Execute the Visitor delegate for each entry in the collection. | |
| virtual void | FromData (DataInput^ input) |
| Deserializes this Properties object. | |
| void | Insert (TPropKey key, TPropValue value) |
| Add or update the string value for key. | |
| void | Load (String^ fileName) |
| Reads property values from a file, overriding what is currently in the properties object. | |
| Properties () | |
| Default constructor: returns an empty collection. | |
| void | Remove (TPropKey key) |
| Remove the key from the collection. | |
| virtual void | ToData (DataOutput^ output) |
| Serializes this Properties object. | |
| virtual String ^ | ToString () override |
Returns a string representation of the current Properties object. | |
Static Public Member Functions | |
| static Properties< TPropKey, TPropValue > ^ | Create () |
| Factory method to create an empty collection of properties. | |
Properties | |
| virtual System::UInt64 | ObjectSize [get] |
| return the size of this object in bytes | |
| System::UInt32 | Size [get] |
| Return the number of entries in the collection. | |
Detailed Description
class Apache::Geode::Client::Properties< TPropKey, TPropValue >
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.
Constructor & Destructor Documentation
◆ Properties()
|
inline |
Default constructor: returns an empty collection.
Member Function Documentation
◆ Create()
|
inlinestatic |
Factory method to create an empty collection of properties.
- Returns
- empty collection of properties
◆ Find()
| TPropValue Apache::Geode::Client::Properties< TPropKey, TPropValue >::Find | ( | TPropKey | key | ) |
Return the value for the given key, or NULL if not found.
- Parameters
-
key the key to find
- Returns
- the value for the key
- Exceptions
-
NullPointerException if the key is null
◆ ForEach()
| void Apache::Geode::Client::Properties< TPropKey, TPropValue >::ForEach | ( | PropertyVisitorGeneric< TPropKey, TPropValue >^ | visitor | ) |
Execute the Visitor delegate for each entry in the collection.
- Parameters
-
visitor visitor delegate
◆ FromData()
|
virtual |
Deserializes this Properties object.
- Parameters
-
input the DataInput stream to use for reading data
- Returns
- the deserialized Properties object
◆ Insert()
| void Apache::Geode::Client::Properties< TPropKey, TPropValue >::Insert | ( | TPropKey | key, |
| TPropValue | value | ||
| ) |
Add or update the string value for key.
- Parameters
-
key the key to insert value the string value to insert
- Exceptions
-
NullPointerException if the key is null
◆ Load()
| void Apache::Geode::Client::Properties< TPropKey, TPropValue >::Load | ( | String^ | fileName | ) |
Reads property values from a file, overriding what is currently in the properties object.
- Parameters
-
fileName the name of the file
◆ Remove()
| void Apache::Geode::Client::Properties< TPropKey, TPropValue >::Remove | ( | TPropKey | key | ) |
Remove the key from the collection.
- Parameters
-
key the key to remove
- Exceptions
-
NullPointerException if the key is null
◆ ToData()
|
virtual |
Serializes this Properties object.
- Parameters
-
output the DataOutput stream to use for serialization
◆ ToString()
|
overridevirtual |
Returns a string representation of the current Properties object.
- Returns
- A comma separated list of property name,value pairs.
Implements Apache::Geode::Client::ISerializable.
Property Documentation
◆ ObjectSize
|
get |
return the size of this object in bytes
◆ Size
|
get |
Return the number of entries in the collection.
- Returns
- the number of entries
Apache Geode C++ Cache .NET API Documentation