You are here: Ektron Namespace > .NET Assemblies > Ektron.Cms.API Namespace > Ektron.Cms.API.Content Namespace > Classes > Content Class > Content Methods > PublishContent
Ektron CMS400.NET API Documentation
ContentsIndexHome
PreviousUpNext
Content.PublishContent Method

Function takes in information about the content to be checked in and published. This goes through the normal approval chain. The content must be in a checked out state to the current logged in user for this to succeed.

C#
public Boolean PublishContent(Long ContentId, Long FolderId, int ContentLanguage, String dontCreateTask, Long UserID, String TaskTitle);
Visual Basic
Public Function PublishContent(ByVal ContentId As Long, ByVal FolderId As Long, ByVal ContentLanguage As Integer, ByVal dontCreateTask As String, ByVal UserID As Long, ByVal TaskTitle As String) As Boolean
Parameters 
Description 
ContentId 
Numeric value of the content's ID. (Long) 
FolderId 
Numeric value of the content folder's ID. (Long) 
ContentLanguage 
Integer value of the content's language ID. 
dontCreateTask 
Set to "" to create a task for this submit. If anything else appears, a task is not created. 
UserID 
The ID of the user assigning the task (current user). This is needed only when the dontCreateTask property is set to "". Otherwise, this property is ingnored. 
TaskTitle 
Title for the task. This is needed only when the dontCreateTask property is set to "". Otherwise, this property is ingnored. 

A Boolean indicating success or not.

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!