ThreadSafeGraphCollectionAdd Method  | 
 
            Adds a Graph to the Collection.
            
 
    Namespace: 
   VDS.RDF
    Assembly:
   dotNetRDF (in dotNetRDF.dll) Version: 
Syntaxprotected override bool Add(
	IGraph g,
	bool mergeIfExists
)
Protected Overrides Function Add ( 
	g As IGraph,
	mergeIfExists As Boolean
) As Boolean
Parameters
- g
 - Type: VDS.RDFIGraph
Graph to add. - mergeIfExists
 - Type: SystemBoolean
Sets whether the Graph should be merged with an existing Graph of the same Uri if present. 
Return Value
Type: 
Boolean[Missing <returns> documentation for "M:VDS.RDF.ThreadSafeGraphCollection.Add(VDS.RDF.IGraph,System.Boolean)"]
Exceptions| Exception | Condition | 
|---|
| RdfException | Throws an RDF Exception if the Graph has no Base Uri or if the Graph already exists in the Collection and the mergeIfExists parameter was not set to true. | 
See Also