Collapse AllExpand All      Code: All Code: Multiple Code: Visual Basic Code: C# Code: Visual C++ Code: F# Code: JScript 
DebuggerStepperBoundaryAttribute Class

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Indicates the code following the attribute is to be executed in run, not step, mode.

System..::..Object
   System..::..Attribute
    System.Diagnostics..::..DebuggerStepperBoundaryAttribute

Namespace:   System.Diagnostics
Assembly:  mscorlib (in mscorlib.dll)
<SerializableAttribute> _
<AttributeUsageAttribute(AttributeTargets.Constructor Or AttributeTargets.Method, Inherited := False)> _
Public NotInheritable Class DebuggerStepperBoundaryAttribute _
	Inherits Attribute
[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets.Constructor|AttributeTargets.Method, Inherited = false)]
public sealed class DebuggerStepperBoundaryAttribute : Attribute
[SerializableAttribute]
[AttributeUsageAttribute(AttributeTargets::Constructor|AttributeTargets::Method, Inherited = false)]
public ref class DebuggerStepperBoundaryAttribute sealed : public Attribute
[<Sealed>]
[<SerializableAttribute>]
[<AttributeUsageAttribute(AttributeTargets.Constructor|AttributeTargets.Method, Inherited = false)>]
type DebuggerStepperBoundaryAttribute =  
    class
        inherit Attribute
    end
public final class DebuggerStepperBoundaryAttribute extends Attribute

The DebuggerStepperBoundaryAttribute type exposes the following members.

  NameDescription
Public method DebuggerStepperBoundaryAttributeInitializes a new instance of the DebuggerStepperBoundaryAttribute class.
Top
  NameDescription
Public method Equals(Object)Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Public method GetHashCodeServes as a hash function for a particular type. (Inherited from Object.)
Public method GetTypeGets the Type of the current instance. (Inherited from Object.)
Public method ToStringReturns a string that represents the current object. (Inherited from Object.)
Top

The DebuggerStepperBoundaryAttribute attribute is used as an escape from the effect of a DebuggerNonUserCodeAttribute. When executing within the boundaries of the DebuggerNonUserCodeAttribute, designer-provided code is executed as a step-through until the next user supplied code is encountered. When context switches are made on a thread, the next user-supplied code module stepped into may not relate to the code that was in the process of being debugged. To avoid this debugging experience, use the DebuggerStepperBoundaryAttribute to escape from stepping through code to running code.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.