Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Xml
Browse permission is required on the document and anonymous callers are supported.
[This is preliminary documentation and is subject to change.]
Returns id of the document and its category that represents a certain language version of a document.
Namespace: ContentStudio.Document.MLC
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public string GetDocumentFromLanguage( ConnectionId connectionId, SessionId sessionId, DocumentId documentId, string languageCode, int languageId )
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
The original document to get a localized version for. - languageCode
- Type: SystemString
A language code short string. Pass null or an empty string to use the languageId parameter instead. - languageId
- Type: SystemInt32
The identifier of the language to use. This parameter is ignored unless languageCode is null or empty.
Return Value
Type: StringXml
Xml
<root> <status>0</status> <statustext>Success</statustext> <doc documentid="NN" categoryid="NN" /> </root>
Exceptions
Exception | Condition |
---|---|
CSPermissionDeniedException | |
CSInvalidSessionException | |
CSInvalidParameterException | |
CSDocumentNotFoundException | |
CSException | A business rule was violated in the underlying Content Studio database
|
SqlException | An error occurred when executing the command against the Content Studio database |
Content Studio permissions
Remarks
The desired language can be supplied either as the language code e.g. "sv-fi" (Swedish-Finland) or as its language id e.g. 2077 (Swedish-Finland). To use the language id the languageCode must be empty or null and a valid language id must be supplied in the languageId parameter.
For more information about language codes in Content Studio see MLC language codes and identifiers
See Also