Click or drag to resize
AbstractStockHelperTHelperEnsureObjectObjectType Method
Ensures the object in request items

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 12.0.0
Syntax
C#
public static ObjectType EnsureObject<ObjectType>(
	string key,
	bool caseSensitive = true
)
where ObjectType : new()

Parameters

key
Type: SystemString
Object key
caseSensitive (Optional)
Type: SystemBoolean
If true, the object key is case sensitive, otherwise key is converted to lowercase before use

Type Parameters

ObjectType

Return Value

Type: ObjectType
See Also