DataCache.CreateRegion Method

Creates a region.

Namespace: Microsoft.ApplicationServer.Caching
Assembly: Microsoft.ApplicationServer.Caching.Client (in microsoft.applicationserver.caching.client.dll)

Usage

'Usage
Dim instance As DataCache
Dim region As String
Dim returnValue As Boolean

returnValue = instance.CreateRegion(region)

Syntax

'Declaration
Public Function CreateRegion ( _
    region As String _
) As Boolean
public bool CreateRegion (
    string region
)
public:
bool CreateRegion (
    String^ region
)
public boolean CreateRegion (
    String region
)
public function CreateRegion (
    region : String
) : boolean

Parameters

  • region
    The name of the region that is created.

Return Value

Returns aBoolean value..

Remarks

A value of true indicates that the region created successfully. A value of false indicates that the region already existed. For more information about regions, see Logical Model.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Platforms

Development Platforms

Visual Studio 2010 and later, .NET Framework 4

Target Platforms

Windows 7; Windows Server 2008 R2; Windows Server 2008 Service Pack 2; Windows Vista Service Pack 2

See Also

Reference

DataCache Class
DataCache Members
Microsoft.ApplicationServer.Caching Namespace

  ff425062(v=azure.10).md 2011-08-26