InfoHelper EnsureInfo Method Kentico 8.0 API Reference
Ensures that the info variable is loaded with the given info. Caches the null value as BaseInfo.Empty info if the value wasn't provided, and returns null in that case.

Namespace: CMS.DataEngine
Assembly: CMS.DataEngine (in CMS.DataEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

variable
Type: CMS.DataEngine BaseInfo 
Variable to use for the value
getMethod
Type: OnlineSystem Func BaseInfo 
Method to get the value

Return Value

Type: BaseInfo
See Also