• EnglishEspañol日本語한국어Português
  • ログイン今すぐ開始

この機械翻訳は、参考として提供されています。

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

問題を作成する

StartAgent(.NETエージェントAPI)

構文

NewRelic.Api.Agent.NewRelic.StartAgent()

エージェントがまだ開始されていない場合は、エージェントを開始します。通常は不要です。

要件

エージェントのバージョン5.0.136.0以降。

すべてのアプリタイプに対応しています。

説明

エージェントがまだ開始されていない場合は、エージェントを開始します。autoStartを無効にしない限り、インストルメント化されたメソッドにヒットするとエージェントが自動的に開始されるため、通常、この呼び出しは不要です。SetApplicationName()を使用する場合は、エージェントを開始するにアプリ名を設定してください。

ヒント

syncStartupまたはsendDataOnExitを有効にしない限り、このメソッドはエージェントを非同期的に開始します (つまり、アプリの起動をブロックしません)。

NewRelic.Api.Agent.NewRelic.StartAgent();
Copyright © 2024 New Relic株式会社。

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.