Partager via


StackFrame2.UserCode Property

Definition

Gets a value indicating whether the frame is user code, also known as "My Code." A read-only property.

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

Property Value

Returns true if the frame is user code; false if the frame is not user code. Always returns true for native code.

Attributes

Remarks

User code is defined by the Just My Code feature. Just My Code supports managed debugging only. Because Just My Code does not support native debugging, native code is always user code by definition.

A StackFrames collection returns all frames regardless of whether Just My Code is enabled. You can use this property to determine which of the frames are user code.

Applies to