SEARCH
0-9 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z
Prev | Current Page 305 | Next

Scott Klein

"Professional LINQ"


It returns Nothing if the sequence is empty. As you have seen, this property returns the value of
the specified node(s), such as the value of the element:
employee....Value
??‘ Extension indexer??”Returns the first element from the sequence. To illustrate this property,
modify the XML fragment at the beginning of this section by adding a second employee, as
shown in the following highlighted code:
Dim employee As XElement = _


Geek
Scott
L
Klein
ScottKlein@SqlXml.com
186
Chapter 9: LINQ to XML and Visual Basic .NET

111 Main St.
Wellington
FL
33414



Geek
Chris
A
Klein
Chris@SqlXml.com

222 Main St.
Portland
OR
88888



With the extension indexer, you can specify specific elements to return as shown in the
example below:
employee.


Pages:
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317
hotel jelenia góra Russian bride Free English grammar and study guid powiekszenia wielkoformatowe counter strike 1.6