Class MongoClient
The remote MongoClient used for working with data in MongoDB remotely via Realm.
Namespace: Realms.Sync
Assembly: Realm.dll
Syntax
public class MongoClient
Properties
| Improve this Doc View SourceServiceName
Gets the service name for this client.
Declaration
public string ServiceName { get; }
Property Value
Type | Description |
---|---|
String | The name of the remote MongoDB service. |
Methods
| Improve this Doc View SourceGetDatabase(String)
Gets a MongoClient.Database instance for the given database name.
Declaration
public MongoClient.Database GetDatabase(string name)
Parameters
Type | Name | Description |
---|---|---|
String | name | The name of the database to retrieve. |
Returns
Type | Description |
---|---|
MongoClient.Database | A MongoClient.Database instance that exposes an API for querying its collections. |