Table of Contents

Method ThrowIfNotSupportedAsync

Namespace
MongoDB.Driver.Core.Misc
Assembly
MongoDB.Driver.dll

ThrowIfNotSupportedAsync(IMongoClient, CancellationToken)

Throws an exception if the feature is not supported in the server used by the client.

public Task ThrowIfNotSupportedAsync(IMongoClient client, CancellationToken cancellationToken = default)

Parameters

client IMongoClient

The client.

cancellationToken CancellationToken

The cancellation token.

Returns

Task