WebProcessStatistics.AppDomainCount 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取进程中的应用程序域数。
public:
property int AppDomainCount { int get(); };
public int AppDomainCount { get; }
member this.AppDomainCount : int
Public ReadOnly Property AppDomainCount As Integer
属性值
应用程序域数。
示例
下面的代码示例演示如何获取 AppDomainCount 值。
public string GetAppDomainCount()
{
// Get the app domain count.
return (string.Format(
"Application domain count: {0}",
processStatistics.AppDomainCount.ToString()));
}
Public Function GetAppDomainCount() As String
' Get the app domain count.
Return String.Format( _
"Application domain count: {0}", _
processStatistics.AppDomainCount.ToString())
End Function 'GetAppDomainCount
注解
此属性通常引用进程中 ASP.NET 应用程序的数量,包括默认域。
适用于
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈