ParentContainsErrorRecordException Constructors

Definition

Overloads

ParentContainsErrorRecordException()

Instantiates a new instance of the ParentContainsErrorRecordException class

ParentContainsErrorRecordException(Exception)

Instantiates a new instance of the ParentContainsErrorRecordException class. Note that this sets the Message and not the InnerException.

ParentContainsErrorRecordException(String)

Instantiates a new instance of the ParentContainsErrorRecordException class

ParentContainsErrorRecordException(SerializationInfo, StreamingContext)

Initializes a new instance of the ParentContainsErrorRecordException class using data serialized via ISerializable

ParentContainsErrorRecordException(String, Exception)

Instantiates a new instance of the ParentContainsErrorRecordException class

ParentContainsErrorRecordException()

Instantiates a new instance of the ParentContainsErrorRecordException class

public:
 ParentContainsErrorRecordException();
public:
 ParentContainsErrorRecordException();
 ParentContainsErrorRecordException();
public ParentContainsErrorRecordException ();
Public Sub New ()

ParentContainsErrorRecordException(Exception)

Instantiates a new instance of the ParentContainsErrorRecordException class. Note that this sets the Message and not the InnerException.

public:
 ParentContainsErrorRecordException(Exception ^ wrapperException);
public ParentContainsErrorRecordException (Exception wrapperException);
new System.Management.Automation.ParentContainsErrorRecordException : Exception -> System.Management.Automation.ParentContainsErrorRecordException
Public Sub New (wrapperException As Exception)

Parameters

wrapperException
Exception

Remarks

I leave this non-standard constructor form public.

ParentContainsErrorRecordException(String)

Instantiates a new instance of the ParentContainsErrorRecordException class

public:
 ParentContainsErrorRecordException(System::String ^ message);
public:
 ParentContainsErrorRecordException(Platform::String ^ message);
 ParentContainsErrorRecordException(std::wstring const & message);
public ParentContainsErrorRecordException (string message);
new System.Management.Automation.ParentContainsErrorRecordException : string -> System.Management.Automation.ParentContainsErrorRecordException
Public Sub New (message As String)

Parameters

message
String

ParentContainsErrorRecordException(SerializationInfo, StreamingContext)

Initializes a new instance of the ParentContainsErrorRecordException class using data serialized via ISerializable

protected:
 ParentContainsErrorRecordException(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected ParentContainsErrorRecordException (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.ParentContainsErrorRecordException : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.ParentContainsErrorRecordException
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

serialization information

context
StreamingContext

streaming context

Exceptions

ParentContainsErrorRecordException(String, Exception)

Instantiates a new instance of the ParentContainsErrorRecordException class

public:
 ParentContainsErrorRecordException(System::String ^ message, Exception ^ innerException);
public ParentContainsErrorRecordException (string message, Exception innerException);
new System.Management.Automation.ParentContainsErrorRecordException : string * Exception -> System.Management.Automation.ParentContainsErrorRecordException
Public Sub New (message As String, innerException As Exception)

Parameters

message
String
innerException
Exception

Applies to