SqlCeException.HResult Property

Gets the HRESULT value of the exception. This value is the same as the value of HResult for the first instance of SqlCeError in the SqlCeErrorCollection for the exception.

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)

public int HResult { get; }

Property Value

Type: System.Int32
The HRESULT value.

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 Visual Studio. For more information about HRESULT values, search the MSDN® Library or the Microsoft Knowledge Base.

Show: