StackFrame2.UserCode 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取一个指示帧是否为用户代码的值,也称为“我的代码”。 一个只读属性。
public:
property bool UserCode { bool get(); };
public:
property bool UserCode { bool get(); };
[System.Runtime.InteropServices.DispId(107)]
public bool UserCode { [System.Runtime.InteropServices.DispId(107)] get; }
[<System.Runtime.InteropServices.DispId(107)>]
[<get: System.Runtime.InteropServices.DispId(107)>]
member this.UserCode : bool
Public ReadOnly Property UserCode As Boolean
属性值
true如果框架为用户代码,则返回; false 如果帧不是用户代码,则返回。 true对于本机代码,始终返回。
- 属性
注解
用户代码由仅我的代码功能定义。 仅我的代码仅支持托管调试。 由于仅我的代码不支持本机调试,因此本机代码始终按定义进行用户代码。
无论是否启用仅我的代码,StackFrames 集合都将返回所有帧。 您可以使用此属性来确定哪些帧是用户代码。