Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
property bool IsEmptyElement {
	virtual bool get() abstract;
}

Property Value

Type: System::Boolean

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

.NET Framework
Available since 1.1
Silverlight
Available since 4.0
Return to top
Show:
© 2017 Microsoft