IStylusSyncPlugin.Error Method

Notifies the implementing object that this plug-in or one of the previous ones in the StylusSyncPluginCollection collection threw an exception.

Namespace: Microsoft.StylusInput
Assembly: Microsoft.Ink (in microsoft.ink.dll)

void Error (
	RealTimeStylus sender,
	ErrorData data
)
void Error (
	RealTimeStylus sender, 
	ErrorData data
)
function Error (
	sender : RealTimeStylus, 
	data : ErrorData
)
Not applicable.

Parameters

sender

The RealTimeStylus object that sent the error data.

data

The ErrorData object sent by the RealTimeStylus object.

NoteNote:

Error is a keyword in Microsoft Visual Basic .NET. When implementing an Error method in Visual Basic .NET, you must enclose the word "Error" in square brackets, as shown in the following example.

Public Sub [Error](ByVal sender As Microsoft.StylusInput.RealTimeStylus, _
                   ByVal data As Microsoft.StylusInput.PluginData.ErrorData) _
    Implements Microsoft.StylusInput.IStylusSyncPlugin.Error

This C# example is excerpted from the RealTimeStylus Plug-in Sample. The example alerts the developer to any error that is received, displaying the DataId and InnerException properties.

public void Error(RealTimeStylus sender, ErrorData data)
{
  Debug.Assert(false, "Error", "An error occurred.  DataId=" + data.DataId + ", " + "Exception=" + data.InnerException);
}

This Microsoft Visual Basic .NET example is excerpted from the RealTimeStylus Plug-in Sample. The example alerts the developer to any error that is received, displaying the DataId and InnerException properties.

Public Sub [Error](ByVal sender As RealTimeStylus, ByVal data As ErrorData) _
  Implements IStylusSyncPlugin.Error
      Debug.Assert(False, "Error", "An error occurred.  DataId=" & _
                         data.DataId.ToString() & ", Exception=" & _
                         data.InnerException.ToString())
End Sub 'Error

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: