Telemetry.GetApplicationInsightsConnectionString Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.