AdvantageCMS.Core.Common.BaseClasses Namespace
Build With Advantage

AdvantageAttributeControl..::..SafeImage Method

Safely casts an object to an AdvantageImage, returning defaults if the object is null.

Namespace:  AdvantageCMS.Core.Common.BaseClasses
Assembly:  AdvantageCMS.Core (in AdvantageCMS.Core.dll)

Syntax


protected AdvantageImage SafeImage(
	Object obj,
	AdvantageImage defaults
)

Parameters

obj
Type: Object
The object to cast.
defaults
Type: AdvantageCMS.Core.Common.BaseClasses..::..AdvantageImage
The default image to return if obj is null.

Return Value

The cast AdvantageImage, or the default image if null.