Method ToString NamespaceMongoDB.Driver AssemblyMongoDB.Driver.dll ToString() Returns a string representation of the credential. public override string ToString() Returns string A string representation of the credential.