IReferencesManagerAddReference Method Ingeniux CMS Content Store API

Adds a new reference between two Pages.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 9.0.565.0 (9.0.565)
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 crossreference to the Source Page.

See Also

Reference