-
Notifications
You must be signed in to change notification settings - Fork 1.5k
/
ProcessModelInfo.xml
142 lines (127 loc) · 8.62 KB
/
ProcessModelInfo.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<Type Name="ProcessModelInfo" FullName="System.Web.ProcessModelInfo">
<TypeSignature Language="C#" Value="public class ProcessModelInfo" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit ProcessModelInfo extends System.Object" />
<TypeSignature Language="DocId" Value="T:System.Web.ProcessModelInfo" />
<TypeSignature Language="VB.NET" Value="Public Class ProcessModelInfo" />
<TypeSignature Language="F#" Value="type ProcessModelInfo = class" />
<TypeSignature Language="C++ CLI" Value="public ref class ProcessModelInfo" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Object</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Contains methods that return information about worker processes.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.ProcessModelInfo> class is not meant to be instantiated in your own code. Use the static <xref:System.Web.ProcessModelInfo.GetCurrentProcessInfo%2A> and <xref:System.Web.ProcessModelInfo.GetHistory%2A> methods to populate <xref:System.Web.ProcessInfo> objects, and then use the properties of the <xref:System.Web.ProcessInfo> objects to obtain information about the processes.
> [!NOTE]
> The <xref:System.Web.ProcessModelInfo.GetCurrentProcessInfo%2A> and <xref:System.Web.ProcessModelInfo.GetHistory%2A> methods can be used only with Microsoft Internet Information Services (IIS) version 5.0 on Microsoft Windows 2000 and Windows XP or with IIS 6.0 on Windows Server 2003 and using IIS 5.0 isolation mode. For more information, see [How to: Configure ASP.NET Applications for an ASP.NET Version](https://learn.microsoft.com/previous-versions/dotnet/netframework-3.0/1kdfe21k(v=vs.85)).
## Examples
The following code example demonstrates how to call the <xref:System.Web.ProcessModelInfo.GetCurrentProcessInfo%2A> method to display statistics about the currently executing ASP.NET process on a Web page. This example will work with Internet Information Services 5.0 on Windows 2000 and Windows XP or with IIS 6.0 on Windows Server 2003 and using IIS 5.0 isolation mode.
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.ProcessModelInfo/CS/processinfo1cs.aspx" id="Snippet1":::
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.ProcessModelInfo/VB/processinfo1vb.aspx" id="Snippet1":::
]]></format>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public ProcessModelInfo ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.ProcessModelInfo.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 ProcessModelInfo();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters />
<Docs>
<summary>Initializes a new instance of the <see cref="T:System.Web.ProcessModelInfo" /> class.</summary>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="GetCurrentProcessInfo">
<MemberSignature Language="C#" Value="public static System.Web.ProcessInfo GetCurrentProcessInfo ();" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Web.ProcessInfo GetCurrentProcessInfo() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.ProcessModelInfo.GetCurrentProcessInfo" />
<MemberSignature Language="VB.NET" Value="Public Shared Function GetCurrentProcessInfo () As ProcessInfo" />
<MemberSignature Language="F#" Value="static member GetCurrentProcessInfo : unit -> System.Web.ProcessInfo" Usage="System.Web.ProcessModelInfo.GetCurrentProcessInfo " />
<MemberSignature Language="C++ CLI" Value="public:
 static System::Web::ProcessInfo ^ GetCurrentProcessInfo();" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.ProcessInfo</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Returns information about the worker process that is executing the current request.</summary>
<returns>A <see cref="T:System.Web.ProcessInfo" /> that contains information about the current process.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.ProcessModelInfo.GetCurrentProcessInfo%2A> method is applicable only for applications that are running under the ASP.NET process model.
## Examples
The following code example demonstrates how to call the <xref:System.Web.ProcessModelInfo.GetCurrentProcessInfo%2A> method to display statistics about the currently executing ASP.NET process on a Web page.
:::code language="aspx-csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.ProcessModelInfo/CS/processinfo1cs.aspx" id="Snippet1":::
:::code language="aspx-vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.ProcessModelInfo/VB/processinfo1vb.aspx" id="Snippet1":::
]]></format>
</remarks>
<exception cref="T:System.Web.HttpException">Process information is not available for the current request.</exception>
</Docs>
</Member>
<Member MemberName="GetHistory">
<MemberSignature Language="C#" Value="public static System.Web.ProcessInfo[] GetHistory (int numRecords);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class System.Web.ProcessInfo[] GetHistory(int32 numRecords) cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.ProcessModelInfo.GetHistory(System.Int32)" />
<MemberSignature Language="VB.NET" Value="Public Shared Function GetHistory (numRecords As Integer) As ProcessInfo()" />
<MemberSignature Language="F#" Value="static member GetHistory : int -> System.Web.ProcessInfo[]" Usage="System.Web.ProcessModelInfo.GetHistory numRecords" />
<MemberSignature Language="C++ CLI" Value="public:
 static cli::array <System::Web::ProcessInfo ^> ^ GetHistory(int numRecords);" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>1.0.5000.0</AssemblyVersion>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>System.Web.ProcessInfo[]</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="numRecords" Type="System.Int32" />
</Parameters>
<Docs>
<param name="numRecords">The number of processes for which information is requested.</param>
<summary>Returns information about recent worker processes.</summary>
<returns>An array of the most recent <see cref="T:System.Web.ProcessInfo" /> objects (up to 100); otherwise, if the number of available objects is less than <paramref name="numRecords" />, all available objects.</returns>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.ProcessModelInfo.GetHistory%2A> method is applicable only for applications that are running under the ASP.NET process model.
]]></format>
</remarks>
<exception cref="T:System.Web.HttpException">Process information is not available.</exception>
</Docs>
</Member>
</Members>
</Type>