ICluster Interface (original) (raw)

Represents a MongoDB cluster.

Namespace: MongoDB.Driver.Core.Clusters
Assembly: MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.10.0+569905ff5e778c38ea19d9d0392496a83e1704ed

Syntax

C#

VB

F#

Copy

public interface ICluster : IDisposable

Public Interface ICluster Inherits IDisposable

type ICluster =
interface interface IDisposable end

The ICluster type exposes the following members.

Properties

| | Name | Description | | | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ----------------------------- | | Public property | ClusterId | Gets the cluster identifier. | | Public property | CryptClient | Gets the crypt client. | | Public property | Description | Gets the cluster description. | | Public property | Settings | Gets the cluster settings. |

Top

Methods

| | Name | Description | | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | Public method | AcquireServerSession | Acquires a core server session. | | Public method | Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) | | Public method | Initialize | Initializes the cluster. | | Public method | SelectServer | Selects a server from the cluster. | | Public method | SelectServerAsync | Selects a server from the cluster. | | Public method | StartSession | Starts a session. |

Top

Events

| | Name | Description | | | ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------ | | Public event | DescriptionChanged | Occurs when the cluster description has changed. |

Top

See Also

Reference

MongoDB.Driver.Core.Clusters Namespace