Show / Hide Table of Contents

    Class MongoClient

    The remote MongoClient used for working with data in MongoDB remotely via Realm.

    Inheritance
    Object
    MongoClient
    Namespace: Realms.Sync
    Assembly: Realm.dll
    Syntax
    public class MongoClient

    Properties

    | Improve this Doc View Source

    ServiceName

    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 Source

    GetDatabase(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.

    • Improve this Doc
    • View Source
    Back to top Copyright © 2020 Realm
    Generated by DocFX