(0) exportieren Drucken
Alle erweitern

IStylusSyncPlugin.Error-Methode

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
)
Nicht zutreffend.

Parameter

sender

The RealTimeStylus object that sent the error data.

data

The ErrorData object sent by the RealTimeStylus object.

HinweisHinweis:

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 für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

Microsoft .NET Framework 3.0 wird unter Windows Vista, Microsoft Windows XP SP2 und Windows Server 2003 SP1 unterstützt.

.NET Framework

Unterstützt in: 3.0
Anzeigen:
© 2014 Microsoft