Stops an out-proc cache. The end result is the same as that of stoping the cache using NCache Manager. It stops the cache on the specified cache server. 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.3.0.0 (4.3.0.0)

Syntax

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

Parameters

cacheId
Type: System..::..String
The identifier for the Cache item to stop.
serverName
Type: System..::..String
The name of the server where cache needs to be stopped.
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 credentials are used incase primar user credentials are not athorized.
isGracefulShutdown
Type: System..::..Boolean

See Also