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.492
Syntax
int AddReference(
	IPage sourcePage,
	IPage targetPage
)

Parameters

sourcePage  IPage
The source page of the Reference
targetPage  IPage
The target page of the Reference

Return Value

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