diff --git a/samples/snippets/cpp/VS_Snippets_CLR/AssemblyInstaller/CPP/assemblyinstaller.cpp b/samples/snippets/cpp/VS_Snippets_CLR/AssemblyInstaller/CPP/assemblyinstaller.cpp index cb4c8b91c6c..cc5af7108ce 100644 --- a/samples/snippets/cpp/VS_Snippets_CLR/AssemblyInstaller/CPP/assemblyinstaller.cpp +++ b/samples/snippets/cpp/VS_Snippets_CLR/AssemblyInstaller/CPP/assemblyinstaller.cpp @@ -33,9 +33,6 @@ int main() // Commit the 'MyAssembly' assembly. myAssemblyInstaller->Commit( mySavedState ); } - catch ( ArgumentException^ ) - { - } catch ( Exception^ e ) { Console::WriteLine( e->Message ); diff --git a/samples/snippets/csharp/VS_Snippets_CLR/AssemblyInstaller/CS/assemblyinstaller.cs b/samples/snippets/csharp/VS_Snippets_CLR/AssemblyInstaller/CS/assemblyinstaller.cs index c6e6cffab75..bf3e2b4d6a2 100644 --- a/samples/snippets/csharp/VS_Snippets_CLR/AssemblyInstaller/CS/assemblyinstaller.cs +++ b/samples/snippets/csharp/VS_Snippets_CLR/AssemblyInstaller/CS/assemblyinstaller.cs @@ -37,13 +37,10 @@ static void Main() // Commit the 'MyAssembly' assembly. myAssemblyInstaller.Commit( mySavedState ); } - catch (ArgumentException) - { - } catch (Exception e) { Console.WriteLine( e.Message ); } } } -// \ No newline at end of file +// diff --git a/samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyInstaller/VB/assemblyinstaller.vb b/samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyInstaller/VB/assemblyinstaller.vb index 38c41997e35..be17bf73a95 100644 --- a/samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyInstaller/VB/assemblyinstaller.vb +++ b/samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyInstaller/VB/assemblyinstaller.vb @@ -33,10 +33,9 @@ Class AssemblyInstaller_Example ' Commit the 'MyAssembly' assembly. myAssemblyInstaller.Commit(mySavedState) - Catch e As ArgumentException Catch e As Exception Console.WriteLine(e.Message) End Try End Sub End Class -' \ No newline at end of file +'