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)


Public ReadOnly Property HResult As Integer
Dim instance As SqlCeError
Dim value As Integer

value = instance.HResult
public int HResult { get; }
property int HResult {
    int get ();
member HResult : int
function get HResult () : int

Property Value

Type: System.Int32
The HR number that identifies the type of error.


SQL Server Compact Books Online does not document specific HRESULTs returned by the HResult property because these errors are not native to SQL Server Compact. 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.

See Also


SqlCeError Class

System.Data.SqlServerCe Namespace