Table of Contents

Method GetCredential

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

GetCredential()

Gets the credential.

public MongoCredential GetCredential()

Returns

MongoCredential

The credential (or null if the URL has not authentication settings).