Flag that indicates whether exceptions are enabled or not.
Namespace: Alachisoft.NCache.Web.CachingAssembly: Alachisoft.NCache.Web (in Alachisoft.NCache.Web.dll) Version: 4.1.0.0 (4.1.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); } |
Field Value
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.
CopyC#
Cache cache = NCache.InitializeCache("myCache"); cache.ExceptionsEnabled = true;