GetLastError() private method

private GetLastError ( IntPtr handle ) : int
handle System.IntPtr
return int
コード例 #1
0
 /// <summary>
 /// Returns the last error code
 /// </summary>
 /// <remarks>
 /// This method wraps the native ups_db_get_error function.
 /// </remarks>
 /// <returns>The error code of the last operation</returns>
 public int GetLastError()
 {
     lock (this) {
         return(NativeMethods.GetLastError(handle));
     }
 }