Compartilhar via


SPCmdletException Constructor (String, Exception)

Creates a new instance of the SPCmdletException class.

Namespace:  Microsoft.SharePoint.PowerShell
Assembly:  Microsoft.SharePoint.PowerShell (in Microsoft.SharePoint.PowerShell.dll)

Syntax

'Declaration
Public Sub New ( _
    localizedString As String, _
    innerException As Exception _
)
'Usage
Dim localizedString As String
Dim innerException As Exception

Dim instance As New SPCmdletException(localizedString, _
    innerException)
public SPCmdletException(
    string localizedString,
    Exception innerException
)

Parameters

  • localizedString
    Type: System.String

    Localized string that the exception should represent.

  • innerException
    Type: System.Exception

    An inner exception to embed in this exception.

See Also

Reference

SPCmdletException Class

SPCmdletException Members

SPCmdletException Overload

Microsoft.SharePoint.PowerShell Namespace