Northwoods.GoWeb Assembly > Northwoods.GoWeb Namespace > GoImage Class : ThrowsExceptions Property |
'Declaration <CategoryAttribute("Behavior")> <DefaultValueAttribute()> <DescriptionAttribute("Whether LoadImage throws any exception that occurs trying to load an Image.")> Public Overridable Property ThrowsExceptions As Boolean
[CategoryAttribute("Behavior")] [DefaultValueAttribute()] [DescriptionAttribute("Whether LoadImage throws any exception that occurs trying to load an Image.")] public virtual bool ThrowsExceptions {get; set;}
You may want to set this to true to help debug why an image does not appear. LoadImage will first send the exception's message to trace listeners. Then if this property is true, the catch handler will rethrow the exception.
This flag may help you debug any image loading exceptions, but there can be other reasons for an image not to appear. Perhaps the most common problem is that information, such as the Name, is not present for LoadImage to be able to find the image data. This will occur, for example, if you set the Image property alone and then serialize/deserialize this GoImage
, because Image
data and ResourceManager
s are not serialized.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2