MLCBaseGetLanguageDataFromASDatatypeMLCLanguage Method Content Studio 5.7 SDK
Content Studio Web Content Management System

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

Converts the XML used by the MLC language AS datatype to the language id indicated in the fragment

Namespace: ContentStudio.Site.ActiveScripting
Assembly: CS_SiteLib (in CS_SiteLib.dll) Version: 5.7.5016.0 (5.7.5016.0)
Syntax

protected static void GetLanguageDataFromASDatatypeMLCLanguage(
	string xmlFragment,
	out int languageId,
	out string languageName,
	out string languageCode
)

Parameters

xmlFragment
Type: SystemString
The xml fragment to use
languageId
Type: SystemInt32
Returns the id of the language represented by the XML fragment
languageName
Type: SystemString
Returns the name of the language represented by the XML fragment
languageCode
Type: SystemString
Returns the code of the language represented by the XML fragment

Return Value

Type: 
The language id
Exceptions

ExceptionCondition
XmlExceptionThe passed XML fragment is not valid XML.
ArgumentException"One of the mandatory elements in the XML fragment could not be found"
InvalidCastExceptionThe ID element of the XML fragment is not a valid Int32.
Remarks

The XML fragment is in the following format: <r><id>NNNNN</id><name>Language name</name><languagecode>LL</languagecode></r> Where NNNNN is the numeric LanguageID and LL is the language short string
See Also

Reference