IComponentElementShare Method
|
Unembeds the content off the component and turn it into an actual
Page object and place it under the given root.
Namespace: Ingeniux.CMSAssembly: Ingeniux.CMS.CSAPI (in Ingeniux.CMS.CSAPI.dll) Version: 10.6.492
SyntaxIPage Share(
IPage rootPage,
bool placeAtEnd = false,
IPageVersion overrideContent = null,
string overrideName = ""
)
Function Share (
rootPage As IPage,
Optional placeAtEnd As Boolean = false,
Optional overrideContent As IPageVersion = Nothing,
Optional overrideName As String = ""
) As IPage
IPage^ Share(
IPage^ rootPage,
bool placeAtEnd = false,
IPageVersion^ overrideContent = nullptr,
String^ overrideName = L""
)
abstract Share :
rootPage : IPage *
?placeAtEnd : bool *
?overrideContent : IPageVersion *
?overrideName : string
(* Defaults:
let _placeAtEnd = defaultArg placeAtEnd false
let _overrideContent = defaultArg overrideContent null
let _overrideName = defaultArg overrideName ""
*)
-> IPage Parameters
- rootPage IPage
- Root page to place the extracted component under
- placeAtEnd Boolean (Optional)
- Specifies whether or not to place the component at the root page's children. Default is to place in the front.
- 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.Share(Ingeniux.CMS.IPage,System.Boolean,Ingeniux.CMS.IPageVersion,System.String)"]
Return Value
IPageThe extracted component, null if component is not in embedded mode
Exceptions
See Also