Condividi tramite


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)
Obsolete.

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 ()

Applies to

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.

Applies to

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

Applies to

ParentContainsErrorRecordException(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

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);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
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
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
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.

Attributes

Exceptions

Applies to

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