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)

Syntax

'Declaration
Public ReadOnly Property HResult As Integer
'Usage
Dim instance As SqlCeException
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 HRESULT value.

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 Visual Studio. 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

SqlCeException Class
SqlCeException Members
System.Data.SqlServerCe Namespace