Language

Cache.RemoveRegion Method

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

Deletes a region. All cached objects inside the region are also removed.

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

Syntax

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

returnValue = instance.RemoveRegion(region)
public bool RemoveRegion (
    string region
)
public:
bool RemoveRegion (
    String^ region
)
public boolean RemoveRegion (
    String region
)
public function RemoveRegion (
    region : String
) : boolean

Parameters

  • region
    The name of the region. If the region does not exist, an exception is thrown.

Return Value

True, if successful; false, if unsuccessful.

Remarks

An exception is thrown if the region does not exist. For more information about regions, see General Concepts (Velocity).

See Also

Reference

Cache Class
Cache Members
System.Data.Caching Namespace