Share via


SharePointCommandException Constructor (String, Exception)

Initializes a new instance of the SharePointCommandException class with a specified error message and a reference to the inner exception that caused the exception.

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

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    innerException As Exception _
)
public SharePointCommandException(
    string message,
    Exception innerException
)

Parameters

  • message
    Type: String

    The error message that explains the reason for the exception.

  • innerException
    Type: Exception

    The exception that is the cause of the current exception.

    If the innerException parameter is not a null reference (Nothing in Visual Basic), then the current exception is raised in a catch block that handles the inner exception.

.NET Framework Security

See Also

Reference

SharePointCommandException Class

SharePointCommandException Overload

Microsoft.VisualStudio.SharePoint Namespace