TraceSourceScope 類別

定義

警告

此 API 現已淘汰。

提供 IDisposable,代表以 System.Diagnostics LogicalOperationStack 為基礎的邏輯作業範圍。Provides an IDisposable that represents a logical operation scope based on System.Diagnostics LogicalOperationStack.

public ref class TraceSourceScope : IDisposable
[System.Obsolete("This type is obsolete and will be removed in a future version. This type is part of TraceSource logger implementation and shouldn't be used directly")]
public class TraceSourceScope : IDisposable
type TraceSourceScope = class
    interface IDisposable
Public Class TraceSourceScope
Implements IDisposable
繼承
TraceSourceScope
屬性
實作

建構函式

TraceSourceScope(Object)

呼叫 StartLogicalOperation(Object),將狀態推送至 LogicalOperationStackPushes state onto the LogicalOperationStack by calling StartLogicalOperation(Object)

方法

Dispose()

呼叫 StopLogicalOperation(),將狀態彈出 LogicalOperationStackPops a state off the LogicalOperationStack by calling StopLogicalOperation()

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(繼承來源 Object)
GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(繼承來源 Object)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

適用於