GetAgent

NewRelic.Api.Agent.NewRelic.GetAgent()
Get access to the Agent via the IAgent interface.

Requirements

Agent version 8.9 or higher.

Compatible with all app types.

Description

Get access to Agent API methods via the IAgent interface.

Return value(s)

An implementation of IAgent providing access to the IAgent API.

Example(s)

IAgent agent = NewRelic.Api.Agent.NewRelic.GetAgent();

For more help

Recommendations for learning more: