StackWalker.ForEach(IConsumer) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Performs the given action on each element of StackFrame
stream
of the current thread, traversing from the top frame of the stack,
which is the method calling this forEach
method.
[Android.Runtime.Register("forEach", "(Ljava/util/function/Consumer;)V", "", ApiSince=34)]
public void ForEach (Java.Util.Functions.IConsumer? action);
[<Android.Runtime.Register("forEach", "(Ljava/util/function/Consumer;)V", "", ApiSince=34)>]
member this.ForEach : Java.Util.Functions.IConsumer -> unit
Parameters
- action
- IConsumer
an action to be performed on each StackFrame
of the stack of the current thread
- Attributes
Remarks
Performs the given action on each element of StackFrame
stream of the current thread, traversing from the top frame of the stack, which is the method calling this forEach
method.
This method is equivalent to calling <blockquote> walk(s -> { s.forEach(action); return null;
);}</blockquote>
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.