Udostępnij za pośrednictwem


XPathNavigator.MoveToId Method

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

When overridden in a derived class, moves to the node that has an attribute of type ID whose value matches the specified String.

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

Syntax

'Declaration
Public MustOverride Function MoveToId ( _
    id As String _
) As Boolean
public abstract bool MoveToId(
    string id
)

Parameters

  • id
    Type: System.String
    A String representing the ID value of the node to which you want to move.

Return Value

Type: System.Boolean
true if the XPathNavigator is successful moving; otherwise, false. If false, the position of the navigator is unchanged.

Version Information

Silverlight

Supported in: 5, 4

Platforms

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