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
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 | |
| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ----------------------------- |
| | ClusterId | Gets the cluster identifier. |
|
| CryptClient | Gets the crypt client. |
|
| Description | Gets the cluster description. |
|
| Settings | Gets the cluster settings. |
Methods
| | Name | Description | |
| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| | AcquireServerSession | Acquires a core server session. |
|
| Dispose | Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. (Inherited from IDisposable.) |
|
| Initialize | Initializes the cluster. |
|
| SelectServer | Selects a server from the cluster. |
|
| SelectServerAsync | Selects a server from the cluster. |
|
| StartSession | Starts a session. |
Events
| | Name | Description | |
| ------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------ | ------------------------------------------------ |
| | DescriptionChanged | Occurs when the cluster description has changed. |
See Also