Creates a region with the given name using the specified RegionAttributes. @nativeclient The region is just created locally. It is not created on the server to which this client is connected with. @endnativeclient

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.5.0.1

Syntax

C#
public Region CreateRegion(
	string name,
	RegionAttributes attributes
)
Visual Basic (Declaration)
Public Function CreateRegion ( _
	name As String, _
	attributes As RegionAttributes _
) As Region
Visual C++
public:
Region^ CreateRegion (
	String^ name, 
	RegionAttributes^ attributes
)

Parameters

name
String
the name of the region to create
attributes
RegionAttributes
the attributes of the root region

Return Value

new region

Exceptions

ExceptionCondition
GemStone.GemFire.Cache..::RegionExistsException if a region with the same name is already in this cache
GemStone.GemFire.Cache..::CacheClosedException if the cache is closed
GemStone.GemFire.Cache..::OutOfMemoryException if the memory allocation failed
GemStone.GemFire.Cache..::RegionCreationFailedException if the call fails due to incomplete mirror initialization
GemStone.GemFire.Cache..::InitFailedException if the optional PersistenceManager fails to initialize
GemStone.GemFire.Cache..::UnknownExceptionotherwise

See Also