다음을 통해 공유


TraceSection.TraceMode 속성

정의

ASP.NET 추적 정보가 표시되는 순서를 가져오거나 설정합니다.

public:
 property System::Web::Configuration::TraceDisplayMode TraceMode { System::Web::Configuration::TraceDisplayMode get(); void set(System::Web::Configuration::TraceDisplayMode value); };
[System.Configuration.ConfigurationProperty("traceMode", DefaultValue=System.Web.Configuration.TraceDisplayMode.SortByTime)]
public System.Web.Configuration.TraceDisplayMode TraceMode { get; set; }
[<System.Configuration.ConfigurationProperty("traceMode", DefaultValue=System.Web.Configuration.TraceDisplayMode.SortByTime)>]
member this.TraceMode : System.Web.Configuration.TraceDisplayMode with get, set
Public Property TraceMode As TraceDisplayMode

속성 값

TraceDisplayMode 추적 정보가 표시되는 순서를 나타내는 값 중 하나입니다.

특성

예제

다음 코드 예제에서는 속성을 사용 하는 방법을 보여 있습니다 TraceMode . 이 코드 예제는 클래스에 제공된 더 큰 예제의 TraceSection 일부입니다.


// Get the current Mode property value.
// TraceDisplayMode modeValue = traceSection.TraceMode;

// Set the Mode property to TraceDisplayMode.SortyByTime.
// traceSection.Mode = TraceDisplayMode.SortByTime;

' Get the current Mode property value.
'Dim modeValue As TraceDisplayMode = traceSection.TraceMode

' Set the Mode property to TraceDisplayMode.SortByTime.
'traceSection.Mode = TraceDisplayMode.SortByTime

적용 대상