MLCDocumentsAddMember Method (ConnectionId, SessionId, DocumentId, DocumentId) Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Connects a document to a master MLC document.

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,
	DocumentId documentId,
	DocumentId masterDocId
)

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).
documentId
Type: ContentStudio.DocumentDocumentId
An identifier to a document to add to the master MLC document.
masterDocId
Type: ContentStudio.DocumentDocumentId
The MLC master document.
Exceptions

ExceptionCondition
CSExceptionA business rule was violated in the underlying Content Studio database Number Message1001 The SessionID is invalid.1002 Permission denied.1009 Invalid parameter value.1100 The document does not exist.1551 The language is not valid.1558 The document is not an MLC member document.1552 The category is not a master in a MLC.1559 The document is not an MLC master document.1560 The master and member document are not members of the same MLC.1561 A member document on this language is already existing for the master document.
SqlExceptionAn error occurred when executing the command against the Content Studio database
Content Studio permissions

Write permission on the master document is needed in order for the action to succeed.
Remarks

Both the documents must exist prior to this operation. The document must be in a member category and the master document must be a document in the master category of the MLC where the document is. Also the master document may not already be connected to the same language already.
See Also

Reference