Property ExceptionsEnabled
ExceptionsEnabled
Flag that indicates whether exceptions are enabled or not.
Declaration
public static bool ExceptionsEnabled { get; set; }
Property Value
Type | Description |
---|---|
System.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.
NCache.Cache.ExceptionsEnabled = true;