다음을 통해 공유


ScriptBlock(SerializationInfo, StreamingContext) Constructor

Definition

Caution

Legacy serialization support is deprecated since .NET 8

Protected constructor to support ISerializable.

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

Parameters

Attributes

Applies to