Aracılığıyla paylaş


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
    Get
'Usage
Dim instance As SqlCeException
Dim value As Integer

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

Property Value

Type: System.Int32
The HRESULT value.

Remarks

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.

See Also

Reference

SqlCeException Class

System.Data.SqlServerCe Namespace