简体   繁体   English

TelemetryConfiguration.CreateDefault 和新的 TelemetryConfiguration() 之间有什么区别?

[英]What is the difference between the TelemetryConfiguration.CreateDefault and the new TelemetryConfiguration()?

What is the difference between the TelemetryConfiguration.CreateDefault and the new TelemetryConfiguration() ? TelemetryConfiguration.CreateDefaultnew TelemetryConfiguration()有什么区别?

I am talking about the types from the Microsoft.ApplicationInsights.Extensibility namespace.我说的是来自Microsoft.ApplicationInsights.Extensibility命名空间的类型。 Both seem to work the same.两者似乎都一样。

If you are using the TelemetryConfiguration() then you have to manually set the ConnectionString property, but the TelemetryConfiguration.CreateDefault() factory method loads the ApplicationInsights.config file if it exists and some defaults.如果您使用的是TelemetryConfiguration() ,则必须手动设置ConnectionString属性,但TelemetryConfiguration.CreateDefault()工厂方法会加载ApplicationInsights.config文件(如果存在)和一些默认值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 删除 Azure 应用程序洞察中的警告“TelemetryConfiguration.Active 已过时” - Removing the warning 'TelemetryConfiguration.Active is obsolete' in Azure application insights TelemetryConfiguration 配置在我使用它的实例时显示声纳问题 - TelemetryConfiguration configuration shows Sonar issue when I use with it's instance new Object {}和new Object(){}之间有什么区别 - what is the difference between new Object{} and new Object(){} new object [] {}和new [] {}有什么区别? - What's the difference between new object[] {} and new [] {}? new Action()和lambda有什么区别? - What is the difference between new Action() and a lambda? 关键字default和new之间有什么区别 - what is the difference between the keywords default and new 使用new和不使用new初始化对象之间的区别是什么 - What is difference between initializing object with new and without new 构造函数中的new与成员声明中的new有什么区别? - What is difference between new in a constructor and new in a member declaration? select new VS foreach (...) new 有什么区别 - What's the difference between select new VS foreach (...) new 使用“new() 和”.StartNew()”创建新实例有什么区别? - What's the difference between creating a new instance with “new() and ”.StartNew()"?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM