Test if the specified Sparql result column is a literal.
Namespace: BrightstarDB.ClientAssembly: BrightstarDB (in BrightstarDB.dll) Version: 1.9.0.0 (1.9.0.0)
Syntax
C# |
---|
public static bool IsLiteral(
this XElement row,
string name
) |
Visual Basic |
---|
<ExtensionAttribute>
Public Shared Function IsLiteral (
row As XElement,
name As String
) As Boolean |
Visual C++ |
---|
public:
[ExtensionAttribute]
static bool IsLiteral(
XElement^ row,
String^ name
) |
F# |
---|
static member IsLiteral :
row : XElement *
name : string -> bool
|
Parameters
- row
- Type: System.Xml.Linq..::..XElement
The XElement that represents a result row
- name
- Type: System..::..String
Name of the column to check if its a literal
Return Value
Type:
BooleanTrue if the column is a literal. False if the column doesn't exist.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
XElement. 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