CodeQL library for C#
codeql/csharp-all 4.0.1-dev (changelog, source)
Search

Predicate Results::restrict

Holds if there exists an API with apiName that is being used usages times and if it is in the top results (guarded by resultLimit).

Import path

import semmle.code.csharp.telemetry.ExternalApi
predicate restrict(string apiName, int usages)