Table of Contents

Method GetMechanismProperty

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

GetMechanismProperty<T>(string, T)

Gets the mechanism property.

public T GetMechanismProperty<T>(string key, T defaultValue)

Parameters

key string

The key.

defaultValue T

The default value.

Returns

T

The mechanism property if one was set; otherwise the default value.

Type Parameters

T

The type of the mechanism property.