GoDigram for .NET Framework and .NET Core
Northwoods.Go Namespace / GoImage Class / ThrowsExceptions Property
In This Topic
    ThrowsExceptions Property
    In This Topic
    Gets or sets whether to (re-)throw an exception that may occur while trying to load an Image.
    Syntax
    [Category("Behavior")]
    [DefaultValue(false)]
    [Description("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.

    See Also