Table of Contents

Method TryCreate

Namespace
MongoDB.Driver.Authentication
Assembly
MongoDB.Driver.dll

TryCreate(SaslContext, out ISaslMechanism)

Creates SASL mechanism if possible.

bool TryCreate(SaslContext context, out ISaslMechanism mechanism)

Parameters

context SaslContext

Sasl context.

mechanism ISaslMechanism

When this method succeeds contains the created mechanism, otherwise null.

Returns

bool

true if the requested provider was created, otherwise false.