Apache Geode Native .NET Reference 1.15.0
Apache::Geode::Client::IWritablePdxInstance Interface Reference


#include <IWritablePdxInstance.hpp>

Public Member Functions

void SetField (String^ fieldName, Object^ value)
 Set the existing named field to the given value. More...

Detailed Description

WritablePdxInstance is a IPdxInstance that also supports field modification
using the SetFieldmethod. To get a WritablePdxInstance call IPdxInstance.CreateWriter.

Member Function Documentation

◆ SetField()

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

Apache Geode C++ Cache .NET API Documentation