MLCSetLanguage Method (ConnectionId, SessionId, CategoryId, Int32) Content Studio 5.7 SDK
Content Studio Web Content Management System

[This is preliminary documentation and is subject to change.]

Changes the language of a MLC master or member.

Namespace: ContentStudio.Document.MLC
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

public void SetLanguage(
	ConnectionId connectionId,
	SessionId sessionId,
	CategoryId categoryId,
	int newLanguageId
)

Parameters

connectionId
Type: ContentStudioConnectionId
A value that identifies the web site
sessionId
Type: ContentStudio.SecuritySessionId
A value that identifies the user's session. This value usually originates from a call to OpenSession(ConnectionId).
categoryId
Type: ContentStudio.DocumentCategoryId
The MLC member or master category to change language for
newLanguageId
Type: SystemInt32
A identifier of the language to set.
Exceptions

ExceptionCondition
CSExceptionA business rule was violated in the underlying Content Studio database
  • 1001 - The SessionID is invalid.
  • 1002 - Permission denied.
  • 1009 - Invalid parameter value.
  • 1503 - The category does not exist.
  • 1551 - The language is not valid.
  • 1553 - The language already exists in the specified MLC.
  • 1554 - The category is not an MLC member.
  • 1555 - The MLC master could not be located.
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

Write container permission is needed on both the MLC master category and on the member category.
Remarks

The new language may not already be in use in the MLC.
See Also

Reference