PowerShellExecutionException Constructor (SerializationInfo, StreamingContext)
[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]
Creates a new instance of the PowerShellExecutionException class.
Namespace: System.Management.Automation.Activities
Assembly: System.Activities.Extended (in System.Activities.Extended.dll)
Syntax
'Declaration
Protected Sub New ( _
serializeInfo As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim serializeInfo As SerializationInfo
Dim context As StreamingContext
Dim instance As New PowerShellExecutionException(serializeInfo, _
context)
protected PowerShellExecutionException(
SerializationInfo serializeInfo,
StreamingContext context
)
protected:
PowerShellExecutionException(
SerializationInfo^ serializeInfo,
StreamingContext context
)
protected function PowerShellExecutionException(
serializeInfo : SerializationInfo,
context : StreamingContext
)
new :
serializeInfo:SerializationInfo *
context:StreamingContext -> PowerShellExecutionException
Parameters
- serializeInfo
Type: System.Runtime.Serialization.SerializationInfo
The serialized object data about the exception being thrown.
- context
Type: System.Runtime.Serialization.StreamingContext
The contextual information about the source or destination.
Platforms
Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008, Windows Server 2003
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.
Version Information
.NET Framework
Supported in: 4
See Also
Reference
PowerShellExecutionException Class
PowerShellExecutionException Members