SMO: checking if db objects exist


I am using Sql Server Management Objects (SMO) and C# to dynamicaly create database objects (tables, columns, indexes etc) or drop them. How can I check if db object exists using SMO (not 'if exists ..' sql).

Thanks in advance.
Who is Participating?
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.