Export (0) Print
Expand All

XPathNavigator.IsEmptyElement Property

When overridden in a derived class, gets a value indicating whether the current node is an empty element without an end element tag.

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

public abstract bool IsEmptyElement { get; }
/** @property */
public abstract boolean get_IsEmptyElement ()

public abstract function get IsEmptyElement () : boolean

Property Value

Returns true if the current node is an empty element; otherwise, false.

This property enables you to determine the difference between the following different elements.

Element

IsEmptyElement Value

<item num="123"/>

true

<item num="123">test</item>

false

<item num="123"></item>

false

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft