AppPackageValidationException constructor (String, Exception, ValidationErrorContext)

Initializes a new instance of the AppPackageValidationException class with a specified error message, a reference to the inner exception that caused this exception, and a context.

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

Syntax

'Declaration
Public Sub New ( _
    message As String, _
    innerException As Exception, _
    errorContext As ValidationErrorContext _
)
'Usage
Dim message As String
Dim innerException As Exception
Dim errorContext As ValidationErrorContext

Dim instance As New AppPackageValidationException(message, _
    innerException, errorContext)
public AppPackageValidationException(
    string message,
    Exception innerException,
    ValidationErrorContext errorContext
)

Parameters

  • message
    Type: System.String

    A message explaining why the exception was thrown.

  • innerException
    Type: System.Exception

    The exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no innerException is specified.

See also

Reference

AppPackageValidationException class

AppPackageValidationException members

AppPackageValidationException overload

Microsoft.SharePoint namespace