Returns the boolean value encoded in the SPARQL results for an ASK query

Namespace: BrightstarDB.Client
Assembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)

Syntax

C#
public static bool SparqlBooleanResult(
	this XDocument document
)
Visual Basic
<ExtensionAttribute> 
Public Shared Function SparqlBooleanResult ( 
	document As XDocument
) As Boolean
Visual C++
public:
[ExtensionAttribute]
static bool SparqlBooleanResult(
	XDocument^ document
)
F#
static member SparqlBooleanResult : 
        document : XDocument -> bool 

Parameters

document
Type: System.Xml.Linq..::..XDocument
The XDocument containing the result data

Return Value

Type: Boolean
Returns true if the result document contains a <boolean> element with a value of "true", false otherwise

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XDocument. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also