SPCmdletException Constructor (SerializationInfo, StreamingContext)
Creates a new instance of the SPCmdletException class.
Namespace: Microsoft.SharePoint.PowerShell
Assembly: Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)
Syntax
'Declaration
Protected Sub New ( _
info As SerializationInfo, _
context As StreamingContext _
)
'Usage
Dim info As SerializationInfo
Dim context As StreamingContext
Dim instance As New SPCmdletException(info, context)
protected SPCmdletException(
SerializationInfo info,
StreamingContext context
)
Parameters
info
Type: System.Runtime.Serialization.SerializationInfoContains serialized information about the exception.
context
Type: System.Runtime.Serialization.StreamingContextContains contextual information about the source or destination of the exception.