| 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
)
Public Function Get (
id As String,
collection As String
) As Object
public:
Object^ Get(
String^ id,
String^ collection
)
member Get :
id : string *
collection : string -> Object
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:
ObjectThe document with the specified id, or null if there was an error, or the id does not exist.
See Also