Export (0) Print
Expand All

DebugRecord Class

Describes a debug message that was sent to the debug stream and information about the command that sent the message. This class is introduced in Windows PowerShell 2.0.


Namespace: System.Management.Automation
Assembly: System.Management.Automation (in System.Management.Automation.dll)

'Usage
Dim instance As DebugRecord

[DataContractAttribute] 
public class DebugRecord : InformationalRecord
/** @attribute DataContractAttribute() */ 
public class DebugRecord extends InformationalRecord
DataContractAttribute 
public class DebugRecord extends InformationalRecord

When a command sends a message to the debug stream, the Windows PowerShell runtime creates the debug record that includes the message sent by the command and information such as the name of the command, the string used to run the command, and the location of the command in the pipeline.

Debug messages are sent when a cmdlet calls the Cmdlet.WriteDebug method, or when a provider calls a CmdletProvider.WriteDebug method when overriding a cmdlet.


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

 

Target Platforms


Show:
© 2015 Microsoft