You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Content Namespace > Classes > Content Class > Content Methods > AddContent Method > AddContent
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Content.AddContent Method (String, String, String, String, String, String, Long, Object, Object, Object, Long, Long, Boolean)

Adds Content to the CMS and allows you to assign the content an XML ID and Template ID. Once the content is added the new Content ID is returned. When content is added using this method, Web Alerts are not sent.

C#
public Long AddContent(String ContentTitle, String ContentComment, String ContentHtml, String SearchText, String SummaryHtml, String ContentLanguage, Long FolderId, Object GoLive, Object EndDate, Object MetaInfoXml, Long XmlID, Long TemplateID, Boolean CleanHtml);
Visual Basic
Public Function AddContent(ByVal ContentTitle As String, ByVal ContentComment As String, ByVal ContentHtml As String, ByVal SearchText As String, ByVal SummaryHtml As String, ByVal ContentLanguage As String, ByVal FolderId As Long, ByVal GoLive As Object, ByVal EndDate As Object, ByVal MetaInfoXml As Object, ByVal XmlID As Long, ByVal TemplateID As Long, ByVal CleanHtml As Boolean) As Long
Parameters 
Description 
ContentTitle 
Title of content to add. 
ContentComment 
Comments about the content being added. 
ContentHtml 
Content HTML to display. 
SearchText 
Search Text. This parameter allows for upgrades from CMS300. If you did not upgrade from CMS300, leave blank. 
SummaryHtml 
A summary of the HTML content. 
ContentLanguage 
The language to which the content is assigned. 
FolderId 
Folder in which to place the content. 
GoLive 
The date the content goes live on the site. 
EndDate 
The date the content stops appearing on the site. 
MetaInfoXml 
Meta Info XML 
XmlID 
XmlID 
TemplateID 
Template ID 
CleanHtml 
Clean ContentHTML and SummaryHTML with tidy. 

Long - ID of newly created content.

Created with a commercial version of Doc-O-Matic. In order to make this message disappear you need to register this software. If you have problems registering this software please contact us at [email protected].
Copyright (c) 2008. All rights reserved.
What do you think about this topic? Send feedback!