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
SaslContextSasl context.
mechanism
ISaslMechanismWhen this method succeeds contains the created mechanism, otherwise
null .
Returns
- bool
true if the requested provider was created, otherwisefalse .