Flag that indicates whether exceptions are enabled or not.

Namespace: Alachisoft.NCache.Web.Caching
Assembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.3.0.0 (4.3.0.0)

Syntax

C#
public virtual bool ExceptionsEnabled { get; set; }
Visual Basic
Public Overridable Property ExceptionsEnabled As Boolean
	Get
	Set
Visual C++
public:
virtual property bool ExceptionsEnabled {
	bool get ();
	void set (bool value);
}

Property Value

Type: Boolean
true if exceptions are enabled, otherwise false.

Remarks

If this property is set the Cache object throws exceptions from public operations. If not set no exception is thrown and the operation fails silently. Setting this flag is especially helpful during development phase of application since exceptions provide more information about the specific causes of failure.

Examples

This sample shows how to set the ExceptionsEnabled property.
 Copy imageCopy
Cache cache = NCache.InitializeCache("myCache");
cache.ExceptionsEnabled = true;

See Also