C# How do I catch an exception and check if it contains a string?

Posted by lisa on Stack Overflow See other posts from Stack Overflow or by lisa
Published on 2008-11-17T00:18:31Z Indexed on 2010/05/09 11:28 UTC
Read the original article Hit count: 169

Filed under:
|
|

Hi all,

I'm getting an exception which says "Access Denied" when the users permissions are sufficient, how do I catch an exception and check for "Access Denied" so that I can show the user a friendlier "Sorry Access Denied" message?

Thanks Beginner :-)

© Stack Overflow or respective owner

Related posts about c#

Related posts about beginner