~ubuntu-branches/ubuntu/trusty/monodevelop/trusty-proposed

« back to all changes in this revision

Viewing changes to external/Newtonsoft.Json/Doc/SelectToken.aml

  • Committer: Package Import Robot
  • Author(s): Jo Shields
  • Date: 2013-05-12 09:46:03 UTC
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20130512094603-mad323bzcxvmcam0
Tags: upstream-4.0.5+dfsg
Import upstream version 4.0.5+dfsg

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="utf-8"?>
 
2
<topic id="SelectToken" revisionNumber="1">
 
3
  <developerConceptualDocument xmlns="http://ddue.schemas.microsoft.com/authoring/2003/5" xmlns:xlink="http://www.w3.org/1999/xlink">
 
4
    <introduction>
 
5
      <para>
 
6
      <codeEntityReference>Overload:Newtonsoft.Json.Linq.JToken.SelectToken</codeEntityReference>
 
7
      provides a method to query LINQ to JSON using a single string path to a desired
 
8
      <codeEntityReference>T:Newtonsoft.Json.Linq.JToken</codeEntityReference>.
 
9
      SelectToken makes dynamic queries easy because the entire query is defined in a string.</para>
 
10
    </introduction>
 
11
    <section>
 
12
      <title>SelectToken</title>
 
13
      <content>
 
14
        <!-- Uncomment this to create a sub-section outline
 
15
        <autoOutline /> -->
 
16
        <para>SelectToken is a method on JToken and takes a string path to a child token.
 
17
        SelectToken returns the child token or a null reference if a token couldn't be
 
18
        found at the path's location.</para>
 
19
        <para>The path is made up of property names and array indexes separated by periods.
 
20
        Array indexes can use either square or round brackets. Both of the following are
 
21
        valid paths and are equivalent to each other: <codeInline>Manufacturers[0].Name</codeInline>
 
22
        and <codeInline>Manufacturers(0).Name</codeInline>.</para>
 
23
 
 
24
<code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\LinqToJsonTests.cs" region="SelectTokenComplex" title="SelectToken Example" />
 
25
      </content>
 
26
    </section>
 
27
    <section>
 
28
      <title>SelectToken with LINQ</title>
 
29
      <content>
 
30
        <!-- Uncomment this to create a sub-section outline
 
31
        <autoOutline /> -->
 
32
        <para>SelectToken can be used in combination with standard LINQ methods.</para>
 
33
<code lang="cs" source="..\Src\Newtonsoft.Json.Tests\Documentation\LinqToJsonTests.cs" region="SelectTokenLinq" title="SelectToken With LINQ Example" />
 
34
      </content>
 
35
    </section>
 
36
    <relatedTopics>
 
37
      <externalLink>
 
38
        <linkText>LINQ to JSON</linkText>
 
39
        <linkUri>LINQtoJSON.htm</linkUri>
 
40
        <linkTarget>_self</linkTarget>
 
41
      </externalLink>
 
42
 
 
43
      <codeEntityReference>Overload:Newtonsoft.Json.Linq.JToken.SelectToken</codeEntityReference>
 
44
    </relatedTopics>
 
45
  </developerConceptualDocument>
 
46
</topic>
 
 
b'\\ No newline at end of file'