Share via


Telemetry.GetApplicationInsightsConnectionString Method

Definition

Gets the Application Insights connection string associated with the Project's Application Insights resource.

public string GetApplicationInsightsConnectionString();
member this.GetApplicationInsightsConnectionString : unit -> string
Public Function GetApplicationInsightsConnectionString () As String

Returns

The Application Insights connection string if the resource was enabled for the Project.

Exceptions

Thrown if an Application Insights connection does not exist for this project.

Thrown if the connection does not use API Key credentials or the API key is missing.

Applies to