Click or drag to resize
MacroFieldContainerGetFieldForObject Method
Returns macro field object of given name if registered for specified object. It loops through all MacroFieldContainer extensions of given object type. Returns null if there is no such Extension for given object.

Namespace: CMS.MacroEngine
Assembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 11.0.0
Syntax
C#
public static MacroField GetFieldForObject(
	Object obj,
	string name
)

Parameters

obj
Type: SystemObject
Object to check
name
Type: SystemString
Name of the field

Return Value

Type: MacroField
See Also