Howdy ![Smile](http://forum.strataframe.net/Skins/Classic/Images/EmotIcons/Smile.gif)
You are typically going to use ShowMessageByKey to show a custom security denied message if you are setting up your permissions with a "Message Key" denied action message, otherwise, you would just do a ShowMessage() with the message text.
Either way, you can get the message key or the message text via SecurityBasics.CurrentUser.GetPermission("YourKey").BlockedMessageOrKey
Hope it helps!