Click or drag to resize

ConfigurationLoaderGetConfigurationBoolean Method (IGraph, INode, INode, Boolean)

Gets the Boolean value or a given default of the first instance of a property for a given Object in the Configuration Graph.

Namespace:  VDS.RDF.Configuration
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static bool GetConfigurationBoolean(
	IGraph g,
	INode objNode,
	INode property,
	bool defValue
)

Parameters

g
Type: VDS.RDFIGraph
Configuration Graph.
objNode
Type: VDS.RDFINode
Object Node.
property
Type: VDS.RDFINode
Property Node.
defValue
Type: SystemBoolean
Default Value to return if there is no valid boolean value.

Return Value

Type: Boolean
If there is a valid boolean value for the property then that is returned, in any other case the given defValue is returned.
See Also