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.StringA message explaining why the exception was thrown.
innerException
Type: System.ExceptionThe exception that is the cause of the current exception, or a null reference (Nothing in Visual Basic) if no innerException is specified.
errorContext
Type: Microsoft.SharePoint.ValidationErrorContextThe context that contains detailed information about this exception.
See also
Reference
AppPackageValidationException class
AppPackageValidationException members