다음을 통해 공유


RemotingErrorRecord Constructors

Definition

Overloads

RemotingErrorRecord(ErrorRecord, OriginInfo)

Constructor.

RemotingErrorRecord(SerializationInfo, StreamingContext)
Obsolete.

Deserializer constructor.

RemotingErrorRecord(ErrorRecord, OriginInfo)

Constructor.

public:
 RemotingErrorRecord(System::Management::Automation::ErrorRecord ^ errorRecord, System::Management::Automation::Remoting::OriginInfo ^ originInfo);
public RemotingErrorRecord (System.Management.Automation.ErrorRecord errorRecord, System.Management.Automation.Remoting.OriginInfo originInfo);
new System.Management.Automation.Runspaces.RemotingErrorRecord : System.Management.Automation.ErrorRecord * System.Management.Automation.Remoting.OriginInfo -> System.Management.Automation.Runspaces.RemotingErrorRecord
Public Sub New (errorRecord As ErrorRecord, originInfo As OriginInfo)

Parameters

errorRecord
ErrorRecord

The error record that is wrapped.

originInfo
OriginInfo

Origin information.

Applies to

RemotingErrorRecord(SerializationInfo, StreamingContext)

Caution

Legacy serialization support is deprecated since .NET 8

Deserializer constructor.

protected:
 RemotingErrorRecord(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
protected RemotingErrorRecord (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")]
protected RemotingErrorRecord (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
new System.Management.Automation.Runspaces.RemotingErrorRecord : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.Runspaces.RemotingErrorRecord
[<System.Obsolete("Legacy serialization support is deprecated since .NET 8", DiagnosticId="SYSLIB0051")>]
new System.Management.Automation.Runspaces.RemotingErrorRecord : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> System.Management.Automation.Runspaces.RemotingErrorRecord
Protected Sub New (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

Serializer information.

context
StreamingContext

Streaming context.

Attributes

Applies to