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.MacroEngineAssembly: CMS.MacroEngine (in CMS.MacroEngine.dll) Version: 10.0.0
Syntax 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:
MacroFieldSee Also