SqlCeError.HResult Property

Returns an HRESULT value that identifies the type of error.

Namespace: System.Data.SqlServerCe
Assembly: System.Data.SqlServerCe (in system.data.sqlserverce.dll)

Syntax

'Declaration
Public ReadOnly Property HResult As Integer
'Usage
Dim instance As SqlCeError
Dim value As Integer

value = instance.HResult
public int HResult { get; 
public:
property int HResult {
    int get ();
/** @property */
public int get_HResult ()
public function get HResult () : int

Property Value

The HR number that identifies the type of error.

Remarks

SQL Server Mobile Books Online does not document specific HRESULTs returned by the HResult property because these errors are not native to SQL Server Mobile. If you are looking for information about specific HRESULT values, see Winerror.h and Wininet.h, which are included with Microsoft Visual Studio .NET. For more information about HRESULT values, search the MSDNĀ® Library or the Microsoft Knowledge Base.

.NET Framework Security

  • Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see .

Platforms

Windows CE, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows XP Professional x64 Edition, Windows XP SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

Version Information

.NET Compact Framework

Supported in: 2.0, 1.0

See Also

Reference

SqlCeError Class
SqlCeError Members
System.Data.SqlServerCe Namespace