﻿<?xml version="1.0" encoding="utf-8"?><Type Name="TraceContextRecord" FullName="System.Web.TraceContextRecord"><TypeSignature Language="C#" Value="public sealed class TraceContextRecord" /><AssemblyInfo><AssemblyName>System.Web</AssemblyName><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Base><BaseTypeName>System.Object</BaseTypeName></Base><Interfaces /><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The <see cref="T:System.Web.TraceContextRecord" /> object encapsulates the trace message, category, any associated <see cref="T:System.Exception" />, and whether the trace record was written by the <see cref="Overload:System.Web.TraceContext.Warn" /> method. </para><para>Every call to the <see cref="Overload:System.Web.TraceContext.Write" /> and <see cref="Overload:System.Web.TraceContext.Warn" /> methods generates a <see cref="T:System.Web.TraceContextRecord" /> object that is added to the <see cref="P:System.Web.TraceContextEventArgs.TraceRecords" /> messages collection. You can access the collection of records by handling the <see cref="E:System.Web.TraceContext.TraceFinished" /> event.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Represents an ASP.NET trace message and any associated data.</para></summary></Docs><Members><Member MemberName=".ctor"><MemberSignature Language="C#" Value="public TraceContextRecord (string category, string msg, bool isWarning, Exception errorInfo);" /><MemberType>Constructor</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><Parameters><Parameter Name="category" Type="System.String" /><Parameter Name="msg" Type="System.String" /><Parameter Name="isWarning" Type="System.Boolean" /><Parameter Name="errorInfo" Type="System.Exception" /></Parameters><Docs><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>Every call to the <see cref="Overload:System.Web.TraceContext.Write" /> and <see cref="Overload:System.Web.TraceContext.Warn" /> methods generates a <see cref="T:System.Web.TraceContextRecord" /> object that is added to the <see cref="P:System.Web.TraceContextEventArgs.TraceRecords" /> messages collection. The <see cref="Overload:System.Web.TraceContext.Warn" /> method call sets the <see cref="P:System.Web.TraceContextRecord.IsWarning" /> property to true, while the <see cref="Overload:System.Web.TraceContext.Write" /> method calls set it to false.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Initializes a new instance of the <see cref="T:System.Web.TraceContextRecord" /> class. </para></summary><param name="category"><attribution license="cc4" from="Microsoft" modified="false" />The trace category that receives the message.</param><param name="msg"><attribution license="cc4" from="Microsoft" modified="false" />The trace message.</param><param name="isWarning"><attribution license="cc4" from="Microsoft" modified="false" />true if the method associated with the <see cref="T:System.Web.TraceContextRecord" /> is the <see cref="Overload:System.Web.TraceContext.Warn" /> method; false if the tracing method is the <see cref="Overload:System.Web.TraceContext.Write" /> method.</param><param name="errorInfo"><attribution license="cc4" from="Microsoft" modified="false" />A <see cref="T:System.Exception" /> object that contains additional error information. </param></Docs></Member><Member MemberName="Category"><MemberSignature Language="C#" Value="public string Category { get; }" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The category is used to better organize trace messages into recognizable groups, but can be any string. The <see cref="T:System.Web.TraceContext" /> class uses <see cref="F:System.String.Empty" /> as its default category for methods that take only a <paramref name="message" /> parameter. The default category for ASP.NET, which writes several trace records when tracing is enabled, is "aspx.page".</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the user-defined category for the trace record.</para></summary></Docs></Member><Member MemberName="ErrorInfo"><MemberSignature Language="C#" Value="public Exception ErrorInfo { get; }" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Exception</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>You can include an exception in a trace record if you are using tracing to debug an application or troubleshoot error and exception handling. The <see cref="P:System.Web.TraceContextRecord.ErrorInfo" /> property is null when the trace record is associated with one of the <see cref="T:System.Web.TraceContext" /> methods that does not have an explicit <paramref name="errorInfo" /> parameter or no exception is provided.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the <see cref="T:System.Exception" /> associated with the trace record, if one is available.</para></summary></Docs></Member><Member MemberName="IsWarning"><MemberSignature Language="C#" Value="public bool IsWarning { get; }" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.Boolean</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks>To be added.</remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets a value indicating whether the trace record is associated with a <see cref="Overload:System.Web.TraceContext.Warn" /> method call.</para></summary></Docs></Member><Member MemberName="Message"><MemberSignature Language="C#" Value="public string Message { get; }" /><MemberType>Property</MemberType><AssemblyInfo><AssemblyVersion>2.0.0.0</AssemblyVersion></AssemblyInfo><ReturnValue><ReturnType>System.String</ReturnType></ReturnValue><Docs><value>To be added.</value><remarks><attribution license="cc4" from="Microsoft" modified="false" /><para>The message can be any string, and is used to write detailed tracing information. It corresponds to the message parameter that is passed to the <see cref="Overload:System.Web.TraceContext.Write" /> and <see cref="Overload:System.Web.TraceContext.Warn" /> methods. The information can be run-time values, messages to orient you and guide you through a program's execution, or other diagnostic data.</para></remarks><summary><attribution license="cc4" from="Microsoft" modified="false" /><para>Gets the user-defined trace message.</para></summary></Docs></Member></Members></Type>