Share via


ContextStack.Current 属性

定义

获取堆栈上的当前对象。

public:
 property System::Object ^ Current { System::Object ^ get(); };
public object Current { get; }
public object? Current { get; }
member this.Current : obj
Public ReadOnly Property Current As Object

属性值

堆栈上的当前对象,或者如果未推入任何对象则为 null

注解

当前对象是堆栈顶部的对象,或上次添加到堆栈的对象。

适用于