VMware Tanzu GemFire Native .NET Reference 10.3.0
|
#include <IWritablePdxInstance.hpp>
Public Member Functions | |
void | SetField (String^ fieldName, Object^ value) |
Set the existing named field to the given value. More... | |
WritablePdxInstance is a IPdxInstance that also supports field modification
using the SetFieldmethod. To get a WritablePdxInstance call IPdxInstance.CreateWriter.
void Apache::Geode::Client::IWritablePdxInstance::SetField | ( | String^ | fieldName, |
Object^ | value | ||
) |
Set the existing named field to the given value.
The setField method has copy-on-write semantics. So for the modifications to be stored in the cache the WritablePdxInstance must be put into a region after setField has been called one or more times.
param name="fieldName"> name of the field whose value will be set
param name="value"> value that will be assigned to the field
exception cref="IllegalStateException"/> if the named field does not exist or if the type of the value is not compatible with the field