Click or drag to resize

IReferencesManagerAddReference Method


Adds a new reference between two Pages.

Namespace:  Ingeniux.CMS
Assembly:  Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.308
Syntax
int AddReference(
	IPage sourcePage,
	IPage targetPage
)

Parameters

sourcePage
Type: Ingeniux.CMSIPage
The source page of the Reference
targetPage
Type: Ingeniux.CMSIPage
The target page of the Reference

Return Value

Type: Int32
Count of References the source Page has after the update.
Remarks

If either the sourcePage or targetPage parameter value is null, returns 0 without doing anything.

The actual references are stored on the Source Page itself. No additional entities are created.

This method will make the Target Page have a cross reference to the Source Page.

See Also