Condividi tramite


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
Not applicable.

Property Value

The HRESULT value.

Remarks

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

Platforms

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

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

Version Information

.NET Framework

Supported in: 3.0

.NET Compact Framework

Supported in: 2.0, 1.0

See Also

Reference

SqlCeException Class
SqlCeException Members
System.Data.SqlServerCe Namespace