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

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

Adds a member to a multi language cluster.

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

public void AddMember(
	ConnectionId connectionId,
	SessionId sessionId,
	CategoryId masterCategoryId,
	CategoryId memberCategoryId,
	int memberLanguageId
)

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).
masterCategoryId
Type: ContentStudio.DocumentCategoryId
An identifier to a category that is a master MLC category.
memberCategoryId
Type: ContentStudio.DocumentCategoryId
A category to make a member in the MLC. This member category must not be a member in an MLC already.
memberLanguageId
Type: SystemInt32
The language identifier of the MLC, the language specified must not exist in the MLC already and the categories must be of the same type.
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.
  • 1550 - - The specified category already participates in an MLC.
  • 1551 - - The language is not valid.
  • 1552 - - The category is not a master in a MLC.
  • 1553 - - The language already exists in the specified MLC.
  • 1811 - - The document or category is protected.
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

Write container permission is needed on the master category in order to add the new member.
See Also

Reference