Try Catch sqlex As SqlException When sqlex.Number = 547 End Try
try{ // Some code here } catch(SqlException sqlException){ if( sqlException.Number == 547){ // Do something ) else{ // Do something } }
switch
try { } catch (SqlException sqlex) { sqlex.Number = 547; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)