Click or drag to resize

ConfigurationLoaderGetConfigurationBoolean Method (IGraph, INode, IEnumerableINode, Boolean)

Gets the Boolean value or a given default of the first instance of the first 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,
	IEnumerable<INode> properties,
	bool defValue
)

Parameters

g
Type: VDS.RDFIGraph
Configuration Graph.
objNode
Type: VDS.RDFINode
Object Node.
properties
Type: System.Collections.GenericIEnumerableINode
Property Nodes.
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 any property then that is returned, in any other case the given defValue is returned.
See Also