MarkLogic XCC/.Net Library

ResultSequence.GetChannel Method 

Return the ResultSequence for an alternate ResultChannelName. The ResultSequence returned by Session.submitRequest(Request) is the sequence of XdmItems representing the XQuery result. But there may be alternate channels (each comprising a ResultSequence instance) associated with the result. This method returns the sequence for the given channel. The ResultSequence returned by Session.submitRequest(Request) is always ResultChannelName.PRIMARY. A ResultSequence instance is always returned by this method, though it may be empty.

[Visual Basic]
Function GetChannel( _
   ByVal channel As Name _
) As ResultSequence
[C#]
ResultSequence GetChannel(
   Name channel
);

Parameters

channel
An instance of ResultChannelName that indicates which channel to return.

Return Value

An instance of ResultSequence, possibly empty.

See Also

ResultSequence Interface | Marklogic.Xcc Namespace