Version

ImageDirectory Property (RenderContextBase)

Gets or sets the image directory used for image source resolution during rendering.
Syntax
'Declaration
 
Public Property ImageDirectory As String
public string ImageDirectory {get; set;}

Property Value

The image directory under which image files can be found.
Exceptions
ExceptionDescription
System.NullReferenceExceptionThrown when the View property has not been properly initialized by the subclass in it's constructor before the ImageDirectory property is first read.
Remarks

This value defaults to the ImageDirectory on the SmartWebControl associated with this RenderContextBase through View. When set, the RenderContextBase caches the value and returns that in response to future requests instead. This copy-on-write cache ensures the ImageDirectory on the SmartWebControl is not inadvertantly modified by rendering code.

Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 8, 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