TraceSourceScope 类

定义

注意

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

提供 IDisposable,其表示基于 System.Diagnostics LogicalOperationStack 的逻辑操作范围。

public ref class TraceSourceScope : IDisposable
public 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
[<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")>]
type TraceSourceScope = class
    interface IDisposable
Public Class TraceSourceScope
Implements IDisposable
继承
TraceSourceScope
属性
实现

构造函数

TraceSourceScope(Object)
已过时.

通过调用 StartLogicalOperation(Object)将状态推送到 LogicalOperationStack 上。

方法

Dispose()
已过时.

通过调用 StopLogicalOperation()从 LogicalOperationStack 弹出状态。

Equals(Object)
已过时.

确定指定对象是否等于当前对象。

(继承自 Object)
GetHashCode()
已过时.

作为默认哈希函数。

(继承自 Object)
GetType()
已过时.

获取当前实例的 Type

(继承自 Object)
MemberwiseClone()
已过时.

创建当前 Object 的浅表副本。

(继承自 Object)
ToString()
已过时.

返回表示当前对象的字符串。

(继承自 Object)

适用于