Creates a region on all servers in the server-group with the given name
and attributes.
Namespace: GemStone.GemFire.Cache
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.5.0.1
Syntax
| C# |
|---|
public void CreateServerRegion( string name, RegionAttributes attributes ) |
| Visual Basic (Declaration) |
|---|
Public Sub CreateServerRegion ( _ name As String, _ attributes As RegionAttributes _ ) |
| Visual C++ |
|---|
public: void CreateServerRegion ( String^ name, RegionAttributes^ attributes ) |
Parameters
- name
- String
the name of the region to create
- attributes
- RegionAttributes
the attributes
Remarks
If the region with the same name already exists on a server, validate that
the attributes are compatible. When the process returns, all servers
in the group should have the region defined.
Exceptions
| Exception | Condition |
|---|---|
| GemStone.GemFire.Cache..::RegionExistsException | if a region with the same name is already in this cache and the specified attributes are not compatible |
| GemStone.GemFire.Cache..::UnsupportedOperationException | if this member type is not Client |
See Also
Cache Class
GemStone.GemFire.Cache Namespace