Click or drag to resize

ConfigurationLoaderLoadObject Method (IGraph, INode, Type)

Loads the Object identified by the given Node as an object of the given type based on information from the Configuration Graph.

Namespace:  VDS.RDF.Configuration
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public static Object LoadObject(
	IGraph g,
	INode objNode,
	Type targetType
)

Parameters

g
Type: VDS.RDFIGraph
Configuration Graph.
objNode
Type: VDS.RDFINode
Object Node.
targetType
Type: SystemType
Target Type.

Return Value

Type: Object

[Missing <returns> documentation for "M:VDS.RDF.Configuration.ConfigurationLoader.LoadObject(VDS.RDF.IGraph,VDS.RDF.INode,System.Type)"]

Remarks

Callers of this method should be careful to check that the Object returned is of a usable type to them. The Target Type parameter does not guarantee that the return value is of that type it is only used to determine which registered instances of IObjectFactory are potentially capable of creating the desired Object.

Callers should also take care that any Objects returned from this method are disposed of when the caller no longer has a use for them as otherwise the reference kept in the cache here will cause the Object to remain in-memory consuming resources.

See Also