Table of Contents

Method SetProfilingLevel

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.Legacy.dll

SetProfilingLevel(ProfilingLevel)

Sets the level of profile information to write.

public virtual CommandResult SetProfilingLevel(ProfilingLevel level)

Parameters

level ProfilingLevel

The profiling level.

Returns

CommandResult

A CommandResult.

SetProfilingLevel(ProfilingLevel, TimeSpan)

Sets the level of profile information to write.

public virtual CommandResult SetProfilingLevel(ProfilingLevel level, TimeSpan slow)

Parameters

level ProfilingLevel

The profiling level.

slow TimeSpan

The threshold that defines a slow query.

Returns

CommandResult

A CommandResult.