Language

Cache.CreateRegion Method

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Creates a region and specifies if resident objects may be evicted.

Namespace: System.Data.Caching
Assembly: ClientLibrary (in clientlibrary.dll)

Syntax

'Declaration
Public Function CreateRegion ( _
    region As String, _
    evictable As Boolean _
) As Boolean
'Usage
Dim instance As Cache
Dim region As String
Dim evictable As Boolean
Dim returnValue As Boolean

returnValue = instance.CreateRegion(region, evictable)
public bool CreateRegion (
    string region,
    bool evictable
)
public:
bool CreateRegion (
    String^ region, 
    bool evictable
)
public boolean CreateRegion (
    String region, 
    boolean evictable
)
public function CreateRegion (
    region : String, 
    evictable : boolean
) : boolean

Parameters

  • region
    The name of the region that is created.
  • evictable
    True if objects in the region can be evicted.

Return Value

A Boolean value of true is returned if the method is successful.

Remarks

The cache cluster determines the cache host on which the region resides. Regions are not specified in configuration files, and must be recreated after each cluster restart. For more information about regions, see General Concepts (Velocity).

See Also

Reference

Cache Class
Cache Members
System.Data.Caching Namespace