/
TraceSection.xml
386 lines (352 loc) · 24.7 KB
/
TraceSection.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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
<Type Name="TraceSection" FullName="System.Web.Configuration.TraceSection">
<TypeSignature Language="C#" Value="public sealed class TraceSection : System.Configuration.ConfigurationSection" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed TraceSection extends System.Configuration.ConfigurationSection" />
<TypeSignature Language="DocId" Value="T:System.Web.Configuration.TraceSection" />
<TypeSignature Language="VB.NET" Value="Public NotInheritable Class TraceSection
Inherits ConfigurationSection" />
<TypeSignature Language="F#" Value="type TraceSection = class
 inherit ConfigurationSection" />
<TypeSignature Language="C++ CLI" Value="public ref class TraceSection sealed : System::Configuration::ConfigurationSection" />
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>System.Configuration.ConfigurationSection</BaseTypeName>
</Base>
<Interfaces />
<Docs>
<summary>Configures the ASP.NET trace service. This class cannot be inherited.</summary>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The <xref:System.Web.Configuration.TraceSection> class provides a way to programmatically access and modify the content of the configuration file `trace` section. The `trace` section configures the ASP.NET trace functionality and controls how trace results are gathered, stored, and displayed.
When tracing is enabled, each page request generates trace messages that can be appended to the page output or stored in an application trace log. You can use the ASP.NET trace viewer (Trace.axd) to view the contents of the trace log.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.TraceSection> type.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/CS/tracesection.cs" id="Snippet1":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/VB/tracesection.vb" id="Snippet1":::
]]></format>
</remarks>
<altmember cref="T:System.Configuration.ConfigurationSection" />
<related type="Article" href="https://docs.microsoft.com/previous-versions/aspnet/bb386420(v=vs.100)">ASP.NET Tracing Overview</related>
<related type="Article" href="https://docs.microsoft.com/previous-versions/aspnet/wwh16c6c(v=vs.100)">How to: View Trace Information with the Trace Viewer</related>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public TraceSection ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberSignature Language="DocId" Value="M:System.Web.Configuration.TraceSection.#ctor" />
<MemberSignature Language="VB.NET" Value="Public Sub New ()" />
<MemberSignature Language="C++ CLI" Value="public:
 TraceSection();" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<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.Configuration.TraceSection" /> class using default settings.</summary>
<remarks>To be added.</remarks>
<related type="Article" href="https://docs.microsoft.com/previous-versions/aspnet/bb386420(v=vs.100)">ASP.NET Tracing Overview</related>
</Docs>
</Member>
<Member MemberName="Enabled">
<MemberSignature Language="C#" Value="public bool Enabled { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool Enabled" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.TraceSection.Enabled" />
<MemberSignature Language="VB.NET" Value="Public Property Enabled As Boolean" />
<MemberSignature Language="F#" Value="member this.Enabled : bool with get, set" Usage="System.Web.Configuration.TraceSection.Enabled" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool Enabled { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("enabled", DefaultValue=false)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("enabled", DefaultValue=false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the ASP.NET trace service is enabled.</summary>
<value>
<see langword="true" /> if trace is enabled; otherwise, <see langword="false" />. The default is <see langword="true" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.TraceSection.Enabled%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.TraceSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/CS/tracesection.cs" id="Snippet7":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/VB/tracesection.vb" id="Snippet7":::
]]></format>
</remarks>
<related type="Article" href="https://docs.microsoft.com/previous-versions/aspnet/bb386420(v=vs.100)">ASP.NET Tracing Overview</related>
</Docs>
</Member>
<Member MemberName="LocalOnly">
<MemberSignature Language="C#" Value="public bool LocalOnly { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool LocalOnly" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.TraceSection.LocalOnly" />
<MemberSignature Language="VB.NET" Value="Public Property LocalOnly As Boolean" />
<MemberSignature Language="F#" Value="member this.LocalOnly : bool with get, set" Usage="System.Web.Configuration.TraceSection.LocalOnly" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool LocalOnly { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("localOnly", DefaultValue=true)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("localOnly", DefaultValue=true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the ASP.NET trace viewer (Trace.axd) is available only to requests from the host Web server.</summary>
<value>
<see langword="true" /> if the ASP.NET trace viewer (Trace.axd) is available only to requests from the host Web server; otherwise, <see langword="false" />. The default is <see langword="true" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.TraceSection.LocalOnly%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.TraceSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/CS/tracesection.cs" id="Snippet6":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/VB/tracesection.vb" id="Snippet6":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="MostRecent">
<MemberSignature Language="C#" Value="public bool MostRecent { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool MostRecent" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.TraceSection.MostRecent" />
<MemberSignature Language="VB.NET" Value="Public Property MostRecent As Boolean" />
<MemberSignature Language="F#" Value="member this.MostRecent : bool with get, set" Usage="System.Web.Configuration.TraceSection.MostRecent" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool MostRecent { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("mostRecent", DefaultValue=false)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("mostRecent", DefaultValue=false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the most recent requests are always stored on the server.</summary>
<value>
<see langword="true" /> if the most recent requests are always stored in the trace log; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
Requests are stored in the trace log in the order they arrive, up to the number of requests specified in the <xref:System.Web.Configuration.TraceSection.RequestLimit%2A> property. When the request limit is reached and <xref:System.Web.Configuration.TraceSection.MostRecent%2A> is `true`, older requests are automatically discarded and new requests continue to be added to the log. When the request limit is reached and <xref:System.Web.Configuration.TraceSection.MostRecent%2A> is `false`, new requests are discarded until earlier requests are removed from the log or the request limit is increased.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.TraceSection.MostRecent%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.TraceSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/CS/tracesection.cs" id="Snippet4":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/VB/tracesection.vb" id="Snippet4":::
]]></format>
</remarks>
<altmember cref="P:System.Web.Configuration.TraceSection.RequestLimit" />
</Docs>
</Member>
<Member MemberName="PageOutput">
<MemberSignature Language="C#" Value="public bool PageOutput { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool PageOutput" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.TraceSection.PageOutput" />
<MemberSignature Language="VB.NET" Value="Public Property PageOutput As Boolean" />
<MemberSignature Language="F#" Value="member this.PageOutput : bool with get, set" Usage="System.Web.Configuration.TraceSection.PageOutput" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool PageOutput { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("pageOutput", DefaultValue=false)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("pageOutput", DefaultValue=false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the ASP.NET trace information is appended to the output of each page.</summary>
<value>
<see langword="true" /> if the trace information is appended to each page; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.TraceSection.PageOutput%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.TraceSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/CS/tracesection.cs" id="Snippet2":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/VB/tracesection.vb" id="Snippet2":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="Properties">
<MemberSignature Language="C#" Value="protected override System.Configuration.ConfigurationPropertyCollection Properties { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Configuration.ConfigurationPropertyCollection Properties" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.TraceSection.Properties" />
<MemberSignature Language="VB.NET" Value="Protected Overrides ReadOnly Property Properties As ConfigurationPropertyCollection" />
<MemberSignature Language="F#" Value="member this.Properties : System.Configuration.ConfigurationPropertyCollection" Usage="System.Web.Configuration.TraceSection.Properties" />
<MemberSignature Language="C++ CLI" Value="protected:
 virtual property System::Configuration::ConfigurationPropertyCollection ^ Properties { System::Configuration::ConfigurationPropertyCollection ^ get(); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute FrameworkAlternate="netframework-4.0">
<AttributeName Language="C#">[get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")]</AttributeName>
<AttributeName Language="F#">[<get: System.Runtime.TargetedPatchingOptOut("Performance critical to inline this type of method across NGen image boundaries")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Configuration.ConfigurationPropertyCollection</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="RequestLimit">
<MemberSignature Language="C#" Value="public int RequestLimit { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance int32 RequestLimit" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.TraceSection.RequestLimit" />
<MemberSignature Language="VB.NET" Value="Public Property RequestLimit As Integer" />
<MemberSignature Language="F#" Value="member this.RequestLimit : int with get, set" Usage="System.Web.Configuration.TraceSection.RequestLimit" />
<MemberSignature Language="C++ CLI" Value="public:
 property int RequestLimit { int get(); void set(int value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("requestLimit", DefaultValue=10)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("requestLimit", DefaultValue=10)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Configuration.IntegerValidator(MinValue=0)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.IntegerValidator(MinValue=0)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int32</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating the maximum number of requests to the application for which ASP.NET stores trace information.</summary>
<value>The maximum number of requests to store on the server. The default is 10.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Remarks
The maximum request limit is 10,000. If a value greater than 10,000 is specified, it is silently rounded down to 10,000 by ASP.NET.
The <xref:System.Web.Configuration.TraceSection.MostRecent%2A> property gets or sets a value that determines whether the requests stored on the server are the most recent requests or the first requests to arrive.
**Note** When the number of requests exceeds the limit imposed by this setting and <xref:System.Web.Configuration.TraceSection.MostRecent%2A> is `false`, no more requests are stored in the trace log. If <xref:System.Web.Configuration.TraceSection.MostRecent%2A> is `true`, the most recent requests are stored up to the limit imposed by this setting and older requests are discarded.
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.TraceSection.RequestLimit%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.TraceSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/CS/tracesection.cs" id="Snippet5":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/VB/tracesection.vb" id="Snippet5":::
]]></format>
</remarks>
<altmember cref="P:System.Web.Configuration.TraceSection.MostRecent" />
</Docs>
</Member>
<Member MemberName="TraceMode">
<MemberSignature Language="C#" Value="public System.Web.Configuration.TraceDisplayMode TraceMode { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype System.Web.Configuration.TraceDisplayMode TraceMode" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.TraceSection.TraceMode" />
<MemberSignature Language="VB.NET" Value="Public Property TraceMode As TraceDisplayMode" />
<MemberSignature Language="F#" Value="member this.TraceMode : System.Web.Configuration.TraceDisplayMode with get, set" Usage="System.Web.Configuration.TraceSection.TraceMode" />
<MemberSignature Language="C++ CLI" Value="public:
 property System::Web::Configuration::TraceDisplayMode TraceMode { System::Web::Configuration::TraceDisplayMode get(); void set(System::Web::Configuration::TraceDisplayMode value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("traceMode", DefaultValue=System.Web.Configuration.TraceDisplayMode.SortByTime)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("traceMode", DefaultValue=System.Web.Configuration.TraceDisplayMode.SortByTime)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Web.Configuration.TraceDisplayMode</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets the order in which ASP.NET trace information is displayed.</summary>
<value>One of the <see cref="T:System.Web.Configuration.TraceDisplayMode" /> values, indicating the order in which trace information is displayed.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.TraceSection.TraceMode%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.TraceSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/CS/tracesection.cs" id="Snippet8":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/VB/tracesection.vb" id="Snippet8":::
]]></format>
</remarks>
</Docs>
</Member>
<Member MemberName="WriteToDiagnosticsTrace">
<MemberSignature Language="C#" Value="public bool WriteToDiagnosticsTrace { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool WriteToDiagnosticsTrace" />
<MemberSignature Language="DocId" Value="P:System.Web.Configuration.TraceSection.WriteToDiagnosticsTrace" />
<MemberSignature Language="VB.NET" Value="Public Property WriteToDiagnosticsTrace As Boolean" />
<MemberSignature Language="F#" Value="member this.WriteToDiagnosticsTrace : bool with get, set" Usage="System.Web.Configuration.TraceSection.WriteToDiagnosticsTrace" />
<MemberSignature Language="C++ CLI" Value="public:
 property bool WriteToDiagnosticsTrace { bool get(); void set(bool value); };" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>System.Web</AssemblyName>
<AssemblyVersion>2.0.0.0</AssemblyVersion>
<AssemblyVersion>4.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Configuration.ConfigurationProperty("writeToDiagnosticsTrace", DefaultValue=false)]</AttributeName>
<AttributeName Language="F#">[<System.Configuration.ConfigurationProperty("writeToDiagnosticsTrace", DefaultValue=false)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets or sets a value indicating whether the messages emitted through the page trace are forwarded to an instance of the <see cref="T:System.Diagnostics.Trace" /> class.</summary>
<value>
<see langword="true" /> if the trace messages are sent to the <see cref="T:System.Diagnostics.Trace" /> class; otherwise, <see langword="false" />. The default is <see langword="false" />.</value>
<remarks>
<format type="text/markdown"><![CDATA[
## Examples
The following code example shows how to use the <xref:System.Web.Configuration.TraceSection.WriteToDiagnosticsTrace%2A> property. This code example is part of a larger example provided for the <xref:System.Web.Configuration.TraceSection> class.
:::code language="csharp" source="~/snippets/csharp/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/CS/tracesection.cs" id="Snippet3":::
:::code language="vb" source="~/snippets/visualbasic/VS_Snippets_WebNet/System.Web.Configuration.TraceSection2/VB/tracesection.vb" id="Snippet3":::
]]></format>
</remarks>
</Docs>
</Member>
</Members>
</Type>