Click or drag to resize
Galactic API

MongoDBUtilityGet Method (String, String)

Gets a document from the database with the specified id within the specified collection.

Namespace:  Galactic.NoSql.MongoDB
Assembly:  Galactic.NoSql.MongoDB (in Galactic.NoSql.MongoDB.dll) Version: 1.3.0.499 (1.3.0.499)
Syntax
public Object Get(
	string id,
	string collection
)

Parameters

id
Type: SystemString
The id of the document to retrieve.
collection
Type: SystemString
The name of the collection to get the document from.

Return Value

Type: Object
The document with the specified id, or null if there was an error, or the id does not exist.
See Also