Поделиться через


XmlReader.ReadStartElement Method (String, String)

Microsoft Silverlight will reach end of support after October 2021. Learn more.

Checks that the current content node is an element with the given LocalName and NamespaceURI and advances the reader to the next node.

Namespace:  System.Xml
Assembly:  System.Xml (in System.Xml.dll)

Syntax

'Declaration
Public Overridable Sub ReadStartElement ( _
    localname As String, _
    ns As String _
)
public virtual void ReadStartElement(
    string localname,
    string ns
)

Parameters

Exceptions

Exception Condition
XmlException

IsStartElement returns false, or the LocalName and NamespaceURI properties of the element found do not match the given arguments.

Remarks

A call to this method corresponds to a call to IsStartElement followed by a call to Read.

Version Information

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

Platforms

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.