Content Studio Web Content Management System
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Xml with the following sample syntax
Any authenticated and anonymous users can execute GetLanguages
[This is preliminary documentation and is subject to change.]
Lists all available MLC languages with optional translation of language names.
If you supply a valid language short-string in the PreferredLanguage parameter the
procedure will attempt to translate the language names into this language. If no valid translation
could be found the default language name (English) will be used.
Namespace: ContentStudio.Document.MLC
Assembly: CSServer5 (in CSServer5.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax
public string GetLanguages( ConnectionId connectionId, SessionId sessionId, string preferredLanguageCode )
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). - preferredLanguageCode
- Type: SystemString
A language code short string. Pass null or an empty string to use the non-translated names.
Return Value
Type: StringXml with the following sample syntax
<root> <status>0</status> <statustext>Success</statustext> <language langid="1" shortstring="neutral" preferedencoding="" languagename="(Language neutral)" spellcheck="0" /> <!-- more language elements can follow --> </root>
Exceptions
Exception | Condition |
---|---|
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
See Also