Click or drag to resize
ExtensionPropertiesEnsurePropertyPropertyType Method
Ensures that the given property is properly initialized

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 11.0.0
Syntax
C#
public GenericProperty<PropertyType> EnsureProperty<PropertyType>(
	Object obj,
	string propertyName
)

Parameters

obj
Type: SystemObject
Parent object
propertyName
Type: SystemString
Property name

Type Parameters

PropertyType

Return Value

Type: GenericPropertyPropertyType
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown when property of name from propertyName is not found in obj.
See Also