Condividi tramite


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.Exception

    Exception that caused the error message to be displayed.

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

ConsoleAction Class

ConsoleAction Members

Microsoft.SharePoint.Publishing.WebControls.EditingMenuActions Namespace

RefreshCurrentItemAfterUpdate

RaisePostBackEvent