VMware Tanzu GemFire .NET Client API Reference

VMware Tanzu GemFire .NET Client: IProperties< TPropKey, TPropValue > Interface Template Reference
VMware Tanzu GemFire .NET Client
IProperties< TPropKey, TPropValue > Interface Template Reference

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. More...

Public Member Functions

TPropValue Find (TPropKey key)
 Return the value for the given key, or NULL if not found. More...
 
void Insert (TPropKey key, TPropValue value)
 Add or update the string value for key. More...
 
void Remove (TPropKey key)
 Remove the key from the collection. More...
 
void ForEach (PropertyVisitorGeneric< TPropKey, TPropValue > visitor)
 Execute the Visitor delegate for each entry in the collection. More...
 
void AddAll (IProperties< TPropKey, TPropValue > other)
 Adds the contents of other to this instance, replacing any existing values with those from other. More...
 
void Load (string fileName)
 Reads values from a file, overriding what is currently in the properties object. More...
 
void ToData (IDataOutput output)
 Serializes this Properties object. More...
 
void FromData (IDataInput input)
 Deserializes this Properties object. More...
 

Properties

uint Size [get]
 Return the number of entries in the collection. More...
 
int ObjectSize [get]
 return the size of this object in bytes More...
 
byte DsCode [get]
 Getter method for DsCode of this object More...
 

Detailed Description

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.

Member Function Documentation

◆ AddAll()

void IProperties< TPropKey, TPropValue >.AddAll ( IProperties< TPropKey, TPropValue >  other)

Adds the contents of other to this instance, replacing any existing values with those from other.

Parameters
othernew set of properties

◆ Find()

TPropValue IProperties< TPropKey, TPropValue >.Find ( TPropKey  key)

Return the value for the given key, or NULL if not found.

Parameters
keythe key to find
Returns
the value for the key
Exceptions
System.Collections.Generic.KeyNotFoundExceptionif the key is not present

◆ ForEach()

void IProperties< TPropKey, TPropValue >.ForEach ( PropertyVisitorGeneric< TPropKey, TPropValue >  visitor)

Execute the Visitor delegate for each entry in the collection.

Parameters
visitorvisitor delegate

◆ FromData()

void IProperties< TPropKey, TPropValue >.FromData ( IDataInput  input)

Deserializes this Properties object.

Parameters
inputthe DataInput stream to use for reading data
Returns
the deserialized Properties object

◆ Insert()

void IProperties< TPropKey, TPropValue >.Insert ( TPropKey  key,
TPropValue  value 
)

Add or update the string value for key.

Parameters
keythe key to insert
valuethe string value to insert

◆ Load()

void IProperties< TPropKey, TPropValue >.Load ( string  fileName)

Reads values from a file, overriding what is currently in the properties object.

Parameters
fileNamethe name of the file
Exceptions
System.ArgumentNullExceptionfilename is null
System.IO.FileNotFoundExceptionfilename is does not exist

◆ Remove()

void IProperties< TPropKey, TPropValue >.Remove ( TPropKey  key)

Remove the key from the collection.

Parameters
keythe key to remove

◆ ToData()

void IProperties< TPropKey, TPropValue >.ToData ( IDataOutput  output)

Serializes this Properties object.

Parameters
outputthe DataOutput stream to use for serialization

Property Documentation

◆ DsCode

byte IProperties< TPropKey, TPropValue >.DsCode
get

Getter method for DsCode of this object

◆ ObjectSize

int IProperties< TPropKey, TPropValue >.ObjectSize
get

return the size of this object in bytes

◆ Size

uint IProperties< TPropKey, TPropValue >.Size
get

Return the number of entries in the collection.

Returns
the number of entries

The documentation for this interface was generated from the following file:
  • gemfire.client/Interfaces/IProperties.cs