Interface IXPathResult

Interface IXPathResult

이름 공간 : Aspose.Html.Dom.XPath 구성: Aspose.HTML.dll (25.4.0)

‘XPathResult’ 인터페이스는 특정 노드의 맥락 내에서 anXPath 1.0 표현의 평가의 결과를 나타냅니다.XPath 표현의 평가가 다양한 결과 유형으로 이어질 수 있기 때문에이 개체는 결과의 유형과 가치를 발견하고 조작 할 수 없습니다.

[DOMNoInterfaceObject]
[ComVisible(true)]
public interface IXPathResult

Properties

BooleanValue

이 볼레안 결과의 가치.

[DOMName("booleanValue")]
bool BooleanValue { get; }

부동산 가치

bool

Exceptions

DOMException

TYPE_ERR : ‘resultType’가 ‘Boolean’ 타입이 아닌 경우 상승합니다.

InvalidIteratorState

‘resultType’는 ‘UnorderedNodeIterator’ 유형 또는 ‘OrderedNodeIterator’ 유형이며 이 결과가 반환 된 이후 문서가 수정되었습니다.

[DOMName("invalidIteratorState")]
bool InvalidIteratorState { get; }

부동산 가치

bool

NumberValue

이 숫자의 가치는 결과입니다.

[DOMName("numberValue")]
double NumberValue { get; }

부동산 가치

double

Exceptions

DOMException

TYPE_ERR : ‘resultType’가 ‘Number’ 형식이 아닌 경우 상승합니다.

ResultType

이 결과의 유형을 나타내는 코드, 그 결과에 의해 정의된 바와 같이http://www.w3.org/TR/DOM- 레벨-3-XPath/xpath.html#XPath결과아스포스.Html.Dom.XPath.XPathResultType enum.

[DOMName("resultType")]
XPathResultType ResultType { get; }

부동산 가치

XPathResultType

SingleNodeValue

이 단일 노드 결과의 값은 ‘0’이 될 수 있습니다.

[DOMNullable]
[DOMName("singleNodeValue")]
Node SingleNodeValue { get; }

부동산 가치

Node

Exceptions

DOMException

TYPE_ERR : 결과Type가 ‘AnyUnorderedNode’ 타입 또는 ‘FirstOrderedNode’ 타입이 아닌 경우 상승합니다.

SnapshotLength

결과 snapshot에있는 노드 수. snapshot에 대한 유효한 값지표는 ‘0’에서 ‘snapshotLength-1’를 포함합니다.

[DOMName("snapshotLength")]
int SnapshotLength { get; }

부동산 가치

int

Exceptions

DOMException

TYPE_ERR : 결과Type가 ‘UnorderedNodeSnapshot’ 타입 또는 ‘OrderedNodeSnapshot’ 타입이 아닌 경우 상승합니다.

StringValue

이 링 결과의 가치.

[DOMName("stringValue")]
string StringValue { get; }

부동산 가치

string

Exceptions

DOMException

TYPE_ERR : ‘resultType’가 ‘String’ 형식이 아닌 경우 상승합니다.

Methods

IterateNext()

더 이상 노드가없는 경우 노드 세트에서 다음 노드를 이터 및 반환하거나 ‘0’입니다.

[DOMName("iterateNext")]
Node IterateNext()

Returns

Node

다음 노드를 반환합니다.

Exceptions

DOMException

TYPE_ERR : ‘resultType’가 ‘UnorderedNodeIterator’ 타입 또는 ‘OrderedNodeIterator’ 타입이 아닌 경우에 업로드됩니다.

DOMException

INVALID_STATE_ERR : 문서가 변경되었습니다결과가 반환되었을 때

SnapshotItem(이트)

스냅샷 컬렉션의 ‘인덱스’ 항목을 반환합니다. ‘인덱스’가 더 크거나 목록에있는 노드 수와 동일한 경우,이 방법은 ‘제로’로 반환됩니다. 테테라터 결과와는 달리, 스냅샷은 무효화되지 않지만 현재 문서와 일치하지 않을 수 있습니다.

[DOMNullable]
[DOMName("snapshotItem")]
Node SnapshotItem(int index)

Parameters

index int

Snapshot 컬렉션에 해당되는 글 1건

Returns

Node

‘NodeList’의 ‘index’th 위치에있는 노드 또는 ’null’ ifthat는 유효한 인덱스가 아닙니다.

Exceptions

DOMException

TYPE_ERR : ‘resultType’가 ‘UnorderedNodeSnapshot’ 타입 또는 ‘OrderedNodeSnapshot’ 타입이 아닌 경우에 업로드됩니다.

 한국어