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 static bool ExceptionsEnabled { get; set; } |
Visual Basic |
---|
Public Shared Property ExceptionsEnabled As Boolean Get Set |
Visual C++ |
---|
public: static 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#
NCache.Cache.ExceptionsEnabled = true;