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

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
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

Type Parameters

ObjectType

Return Value

Type: ObjectType
See Also