T
The type of value to read.
Noemax FastInfoset.NET Report an issue | Discuss in forums
XmlFastInfosetReader.ReadElementContentAs<T>(string,string) Method
See Also 
Noemax.FastInfoset Assembly > Noemax.FastInfoset Namespace > XmlFastInfosetReader Class > ReadElementContentAs Method : Generic ReadElementContentAs(String,String) Method



localname
The local name of the element.
namespaceURI
The namespace URI of the element.
Checks that the specified local name and namespace URI matches that of the current element, then reads the current element and returns the content as a value of the type specified.


Namespace: Noemax.FastInfoset
Assembly: Noemax.FastInfoset (in Noemax.FastInfoset.dll)

Syntax

Visual Basic (Declaration) 
Overloads Public Function ReadElementContentAs(Of T)( _
   ByVal localname As String, _
   ByVal namespaceURI As String _
) As T
Visual Basic (Usage)Copy Code
Dim instance As XmlFastInfosetReader
Dim localname As String
Dim namespaceURI As String
Dim value As T
 
value = instance.ReadElementContentAs(Of T)(localname, namespaceURI)
C# 
public T ReadElementContentAs<T>( 
   string localname,
   string namespaceURI
)
C++/CLI 
public:
T ReadElementContentAsgeneric<typename T>
( 
   String^ localname,
   String^ namespaceURI
) 

Parameters

localname
The local name of the element.
namespaceURI
The namespace URI of the element.

Type Parameters

T
The type of value to read.

Return Value

The value of the specified type.

Remarks

This method reads the start tag, the content of the element, and moves the reader past the end element tag. It expands entities and ignores processing instructions and comments. The element can only contain simple content. That is, it cannot have child elements.

Version Information

.NET Framework

Supported in: 3.5, 3.0, 2.0

.NET Compact Framework

Supported in: 3.5, 2.0

See Also