//-----------------------------------------------------------------------
//
// Copyright (c) Microsoft Corporation.
//
//-----------------------------------------------------------------------
namespace Microsoft.Isam.Esent.Interop
{
using Microsoft.Isam.Esent.Interop.Implementation;
///
/// Gives information about the version of esent being used.
///
public static class EsentVersion
{
///
/// Gets a value indicating whether the current version of esent
/// supports features available in the Windows Server 2003 version of
/// esent.
///
public static bool SupportsServer2003Features
{
get
{
return Capabilities.SupportsServer2003Features;
}
}
///
/// Gets a value indicating whether the current version of esent
/// supports features available in the Windows Vista version of
/// esent.
///
public static bool SupportsVistaFeatures
{
get
{
return Capabilities.SupportsVistaFeatures;
}
}
///
/// Gets a value indicating whether the current version of esent
/// supports features available in the Windows 7 version of
/// esent.
///
public static bool SupportsWindows7Features
{
get
{
return Capabilities.SupportsWindows7Features;
}
}
///
/// Gets a value indicating whether the current version of esent
/// supports features available in the Windows 8 version of
/// esent.
///
public static bool SupportsWindows8Features
{
get
{
return Capabilities.SupportsWindows8Features;
}
}
///
/// Gets a value indicating whether the current version of esent
/// supports features available in the Windows 8.1 version of
/// esent.
///
public static bool SupportsWindows81Features
{
get
{
return Capabilities.SupportsWindows81Features;
}
}
///
/// Gets a value indicating whether the current version of esent
/// supports features available in the Windows 10 version of
/// esent.
///
public static bool SupportsWindows10Features
{
get
{
return Capabilities.SupportsWindows10Features;
}
}
///
/// Gets a value indicating whether the current version of esent
/// can use non-ASCII paths to access databases.
///
public static bool SupportsUnicodePaths
{
get
{
return Capabilities.SupportsUnicodePaths;
}
}
///
/// Gets a value indicating whether large (> 255 byte) keys are supported.
/// The key size for an index can be specified in the
/// object.
///
public static bool SupportsLargeKeys
{
get
{
return Capabilities.SupportsLargeKeys;
}
}
///
/// Gets a description of the current Esent capabilities.
///
///
/// We allow this to be set separately so that capabilities can
/// be downgraded for testing.
///
private static JetCapabilities Capabilities
{
get
{
return Api.Impl.Capabilities;
}
}
}
}