ScriptCallDepthException Class
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.
ScriptCallDepthException occurs when the number of session state objects of this type in this scope exceeds the configured maximum.
public ref class ScriptCallDepthException : SystemException, System::Management::Automation::IContainsErrorRecord
[System.Serializable]
public class ScriptCallDepthException : SystemException, System.Management.Automation.IContainsErrorRecord
public class ScriptCallDepthException : SystemException, System.Management.Automation.IContainsErrorRecord
[<System.Serializable>]
type ScriptCallDepthException = class
inherit SystemException
interface IContainsErrorRecord
type ScriptCallDepthException = class
inherit SystemException
interface IContainsErrorRecord
Public Class ScriptCallDepthException
Inherits SystemException
Implements IContainsErrorRecord
- Inheritance
-
ScriptCallDepthException
- Attributes
- Implements
When one PowerShell command or script calls another, this creates an additional scope. Some script expressions also create a scope. PowerShell imposes a maximum call depth to prevent stack overflows. The maximum call depth is configurable but generally high enough that scripts which are not deeply recursive should not have a problem.
Script |
Instantiates a new instance of the ScriptCallDepthException class. |
Script |
Obsolete.
Initializes a new instance of the ScriptCallDepthException class using data serialized via ISerializable |
Script |
Instantiates a new instance of the ScriptCallDepthException class. |
Script |
Instantiates a new instance of the ScriptCallDepthException class. |
Call |
Always 0 - depth is not tracked as there is no hard coded maximum. |
Error |
Get |
Serializer for ISerializable |