Click or drag to resize

IComponentElementShareBack Method


Unembeds the content off the component and save it back to the original component. This process requires the embedded/override content to have the same schema as the its original component.

Namespace: Ingeniux.CMS
Assembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
Syntax
void ShareBack(
	IUserSession session,
	bool checkinComponent,
	IPageVersion overrideContent = null,
	string overrideName = ""
)

Parameters

session  IUserSession
The session to use to retrieve original component
checkinComponent  Boolean
Whether to check in the original component automatically, after share back.
overrideContent  IPageVersion  (Optional)
The page version content to replace the embed content of this component. When specified, this content will be used to create the shared component instead.
overrideName  String  (Optional)

[Missing <param name="overrideName"/> documentation for "M:Ingeniux.CMS.IComponentElement.ShareBack(Ingeniux.CMS.IUserSession,System.Boolean,Ingeniux.CMS.IPageVersion,System.String)"]

Exceptions
ExceptionCondition
ArgumentExceptionWhen component doesn't have the original component id, or original component no longer exists
InvalidOperationExceptionWhen current user doesn't have IGX_USER_RIGHT_CAN_EMBED_UNEMBED_COMPONENTS rights, or user doesn't have write access to the original component
See Also