Click or drag to resize

BaseGraphCollection Class

Abstract Base Class for Graph Collections.
Inheritance Hierarchy

Namespace:  VDS.RDF
Assembly:  dotNetRDF (in dotNetRDF.dll) Version:
Syntax
public abstract class BaseGraphCollection : IEnumerable<IGraph>, 
	IEnumerable, IDisposable

The BaseGraphCollection type exposes the following members.

Constructors
  NameDescription
Protected methodBaseGraphCollection
Initializes a new instance of the BaseGraphCollection class
Top
Properties
  NameDescription
Public propertyCount
Gets the number of Graphs in the Collection.
Public propertyGraphUris
Provides access to the Graph URIs of Graphs in the Collection.
Public propertyItem
Gets a Graph from the Collection.
Top
Methods
  NameDescription
Protected methodAdd
Adds a Graph to the Collection.
Public methodContains
Checks whether the Graph with the given Uri exists in this Graph Collection.
Public methodDispose
Disposes of the Graph Collection.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetEnumerator
Gets the Enumerator for the Collection.
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodRaiseGraphAdded
Helper method which raises the Graph Added event manually.
Protected methodRaiseGraphRemoved
Helper method which raises the Graph Removed event manually.
Protected methodRemove
Removes a Graph from the Collection.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Events
  NameDescription
Public eventGraphAdded
Event which is raised when a Graph is added to the Collection
Public eventGraphRemoved
Event which is raised when a Graph is removed from the Collection
Top
Extension Methods
Remarks
Designed to allow the underlying storage of a Graph Collection to be changed at a later date without affecting classes that use it.
See Also