Exception | Description |
---|---|
System.NullReferenceException | Thrown when the View property has not been properly initialized by the subclass in it's constructor before the ImageDirectory property is first read. |
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.
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