Stops an out-proc cache. The end result is the same as that of stoping the cache using NCache Manager. It stops the cache only on the same server where the client application is running. If the Cache Server could not be contacted then it throws a ManagementException exception.

Namespace: Alachisoft.NCache.Web.Management
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.0.0)

Syntax

C#
public static void StopCache(
	string cacheId,
	SecurityParams primaryUserCredentials,
	SecurityParams secondaryUserCredentials
)
Visual Basic
Public Shared Sub StopCache ( _
	cacheId As String, _
	primaryUserCredentials As SecurityParams, _
	secondaryUserCredentials As SecurityParams _
)
Visual C++
public:
static void StopCache(
	String^ cacheId, 
	SecurityParams^ primaryUserCredentials, 
	SecurityParams^ secondaryUserCredentials
)

Parameters

cacheId
Type: System..::..String
The identifier for the Cache item to stop.
primaryUserCredentials
Type: Alachisoft.NCache.Web.Security..::..SecurityParams
Primary user id and password information used for user's authorization for the operation if security is enabled at Cache Server.
secondaryUserCredentials
Type: Alachisoft.NCache.Web.Security..::..SecurityParams
Secondary user id and password information used for user's authorization for the operation if security is enabled at Cache Server. These credentals are use incase primary credentials are not athorized.

See Also