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

Parses given XDocument to collections used by KeyWordsEditor

Namespace: Tools.WindowsT.FormsT
Assembly: Tools.Windows (in Tools.Windows.dll) Version: 1.5.3.38916 (1.5.3.38916)

Syntax

C#
[EditorBrowsableAttribute(EditorBrowsableState.Advanced)]
public static IPair<IEnumerable<string>, IEnumerable<KeyValuePair<string[], string[]>>> ParseFromXml(
	XDocument doc
)
Visual Basic
<EditorBrowsableAttribute(EditorBrowsableState.Advanced)> _
Public Shared Function ParseFromXml ( _
	doc As XDocument _
) As IPair(Of IEnumerable(Of String), IEnumerable(Of KeyValuePair(Of String(), String())))
Visual C++
[EditorBrowsableAttribute(EditorBrowsableState::Advanced)]
public:
static IPair<IEnumerable<String^>^, IEnumerable<KeyValuePair<array<String^>^, array<String^>^>>^>^ ParseFromXml(
	XDocument^ doc
)
F#
[<EditorBrowsableAttribute(EditorBrowsableState.Advanced)>]
static member ParseFromXml : 
        doc:XDocument -> IPair<IEnumerable<string>, IEnumerable<KeyValuePair<string[], string[]>>> 
JScript
public static function ParseFromXml(
	doc : XDocument
) : IPair<IEnumerable<String>, IEnumerable<KeyValuePair<String[], String[]>>>

Parameters

doc
Type: System.Xml.Linq..::..XDocument
Document to be parsed

Return Value

IPair<(Of <(<'T1, T2>)>)>. Value1 contains list of keywords for autocomplete, Value2 contains pairs of synonyms.

Exceptions

ExceptionCondition
System..::..ArgumentNullExceptiondoc is null
System.Xml.Schema..::..XmlSchemaExceptionDocument doc does not comply with XML-Schema http://dzonny.cz/xml/Tools.WindowsT.FormsT.KeyWordsEditor. This schema is stored as embdeded resource Tools.WindowsT.FormsT.KeyWordsEditor.xsd in this assembly.

See Also