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