Pivotal GemFire Native .NET Reference  10.2.0
Apache::Geode::Client::CacheableStringArray Class Reference

An immutable wrapper for array of strings that can serve as a distributable object for caching. More...

Inherits Apache::Geode::Client::IDataSerializablePrimitive.

Public Member Functions

array< String^> ^ GetValues ()
 Returns a copy of the underlying array of strings. More...
 
virtual String ^ ToString () override
 Return a string representation of the object. More...
 

Static Public Member Functions

static CacheableStringArrayCreate (array< String^>^ strings)
 Static function to create a new instance copying from the given string array. More...
 
static ISerializableCreateDeserializable ()
 Factory function to register this class. More...
 

Properties

String^ Item [get]
 Returns a copy of the underlying string at the given index. More...
 
System::Int32 Length [get]
 Gets the length of the array. More...
 

Detailed Description

An immutable wrapper for array of strings that can serve as a distributable object for caching.

Member Function Documentation

◆ Create()

static CacheableStringArray ^ Apache::Geode::Client::CacheableStringArray::Create ( array< String^>^  strings)
inlinestatic

Static function to create a new instance copying from the given string array.

If the given array of strings is null or of zero-length then this method returns null.

Exceptions
IllegalArgumentExceptionIf the array contains a string greater than or equal 64K in length.

◆ CreateDeserializable()

static ISerializable ^ Apache::Geode::Client::CacheableStringArray::CreateDeserializable ( )
inlinestatic

Factory function to register this class.

◆ GetValues()

array<String^> ^ Apache::Geode::Client::CacheableStringArray::GetValues ( )

Returns a copy of the underlying array of strings.

◆ ToString()

virtual String ^ Apache::Geode::Client::CacheableStringArray::ToString ( )
inlineoverridevirtual

Return a string representation of the object.

Implements Apache::Geode::Client::ISerializable.

Property Documentation

◆ Item

String^ Apache::Geode::Client::CacheableStringArray::Item
get

Returns a copy of the underlying string at the given index.

◆ Length

System:: Int32 Apache::Geode::Client::CacheableStringArray::Length
get

Gets the length of the array.


Apache Geode C++ Cache .NET API Documentation