You are here: Ektron Namespace > Web Services API > Ektron.Services 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. 

This method can be accessed through the Content.asmx file located in:

~/Workarea/webservices/WebServiceAPI/Content/Content.asmx
C#
[SoapHeader("AuthHeader")]
[SoapHeader("RequestInfoHeader")]
[WebMethod(MessageName = "PublishContent", Description = "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")]
public bool PublishContent(long ContentID, long FolderID, int ContentLanguage, string DontCreateTask, long UserID, string TaskTitle);
Visual Basic
<SoapHeader("AuthHeader")>
<SoapHeader("RequestInfoHeader")>
<WebMethod(MessageName = "PublishContent", Description = "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")>
Public Function PublishContent(ContentID As long, FolderID As long, ContentLanguage As Integer, DontCreateTask As string, UserID As long, TaskTitle As string) As bool
Parameters 
Description 
ContentID 
The numeric value of the content's ID. 
FolderID 
The numeric value of the content folder's ID. 
ContentLanguage 
The numeric value of the content's language ID. 
DontCreateTask 
If this parameter is "", a task will be created for this submit. Otherwise, no task is created. 
UserID 
The user ID of task assigned by current user. This is needed only if "dontCreateTask" is "", otherwise it is ignored. 
TaskTitle 
Title for the task. This is needed only if "dontCreateTask" is "", otherwise it is ignored. 
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!