ParentContainsErrorRecordException Constructor

 

Updated: April 27, 2016

Applies To: Windows PowerShell

Initializes a new instance of the ParentContainsErrorRecordException class. The variants of this constructor can create an empty object, an object that contains an exception message, and more.

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

NameDescription
System_CAPS_pubmethodParentContainsErrorRecordException()

Initializes a new instance of the ParentContainsErrorRecordException class that is empty.

System_CAPS_pubmethodParentContainsErrorRecordException(Exception)

Initializes a new instance of the ParentContainsErrorRecordException class that contains the associated wrapper exception.

System_CAPS_protmethodParentContainsErrorRecordException(SerializationInfo, StreamingContext)

Initializes a new instance of the ParentContainsErrorRecordException class that contains information that is read from the provided serialization information.

System_CAPS_pubmethodParentContainsErrorRecordException(String)

Initializes a new instance of the ParentContainsErrorRecordException class that contains an exception message.

System_CAPS_pubmethodParentContainsErrorRecordException(String, Exception)

Initializes a new instance of the ParentContainsErrorRecordException class that contains an exception message and the inner exception that caused this exception to be thrown.

This constructor should be used when implementing the ErrorRecord property of the IContainsErrorRecord interface.

Return to top

Community Additions

ADD
Show: