GoDiagram Web Reference
ThrowsExceptions Property

Gets or sets whether to (re-)throw an exception that may occur while trying to load an Image.
Syntax
'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;}

Property Value

The default value is false.
Remarks

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 ResourceManagers are not serialized.

Requirements

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

See Also

Reference

GoImage Class
GoImage Members

 

 


© 2013. Northwoods Software Corporation. All Rights Reserved.

Send Feedback