---
title: "IXPathResult.SnapshotLength"
url: "https://reference.aspose.com/html/net/aspose.html.dom.xpath/ixpathresult/snapshotlength/"
product: "Aspose.HTML for .NET API Reference"
description: "IXPathResult SnapshotLength property. The number of nodes in the result snapshot. Valid values for snapshotItem indices are 0 to snapshotLength-1 inclusive"
---

## IXPathResult.SnapshotLength property

The number of nodes in the result snapshot. Valid values for snapshotItem indices are `0` to `snapshotLength-1` inclusive.

```csharp
public int SnapshotLength { get; }
```

### Exceptions

| exception | condition |
| --- | --- |
| [DOMException](../../../aspose.html.dom/domexception/) | TYPE_ERR: raised if resultType is not `UnorderedNodeSnapshot` type or `OrderedNodeSnapshot` type. |

### See Also

* interface [IXPathResult](../)
* namespace [Aspose.Html.Dom.XPath](../../../aspose.html.dom.xpath/)
* assembly [Aspose.HTML](../../../)
