Description:
Changes the type of a content. This deletes the content and creates a replacement of the specified type allowing the caller to decide about harvesting.
Syntax:
public static RenderContent ChangeContentType(
RenderContent oldContent,
Guid newType,
Boolean harvestParameters
)
RenderContent oldContent,
Guid newType,
Boolean harvestParameters
)
Parameters:
- oldContent
- Type: RenderContent
- oldContent is the old content which is deleted.
- newType
- Type: System.Guid
- The type of content to replace pOldContent with.
- harvestParameters
- Type: System.Boolean
- Determines whether or not parameter harvesting will be performed.
Returns:
Type: RenderContent
A new persistent render content.
Available since:
6.0