ConsoleAction.ShowError Method
Causes the specified exception to display information about the error in the console error display.
Namespace: Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions
Assembly: Microsoft.SharePoint.Publishing (in Microsoft.SharePoint.Publishing.dll)
Syntax
'Declaration
Public Overridable Sub ShowError ( _
e As Exception, _
myError As ConsoleError _
)
'Usage
Dim instance As ConsoleAction
Dim e As Exception
Dim myError As ConsoleError
instance.ShowError(e, myError)
public virtual void ShowError(
Exception e,
ConsoleError myError
)
Parameters
e
Type: System.ExceptionException that caused the error message to be displayed.
myError
Type: Microsoft.SharePoint.Publishing.WebControls.ConsoleErrorConsoleError that represents the current error message and options.
Remarks
When a postback to this ConsoleAction object results in an error, you can use this method to provide useful error information to the current user.
See Also
Reference
Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions Namespace