다음을 통해 공유


IStylusSyncPlugin.Error Method

IStylusSyncPlugin.Error Method

Informs the implementing object that this plug-in or one of the previous ones in the list threw an error.

Definition

Visual Basic .NET Public Sub Error( _
ByVal sender As RealTimeStylus, _
ByVal data As ErrorData _
)
C# public void Error(
RealTimeStylus sender,
ErrorData data
);
Managed C++ public: void Error(
RealTimeStylus *sender,
ErrorData *data
);

Parameters

sender Microsoft.StylusInput.RealTimeStylus. The RealTimeStylus object that sent the error data.
data Microsoft.StylusInput.PluginData.ErrorData. The ErrorData object sent by the RealTimeStylus object.

Remarks

Note: Error is a keyword in Microsoft® Visual Basic® .NET, so when implementing an IStylusSyncPlugin.Error method in Visual Basic .NET, you must enclose the word Error in square brackets, as shown below.

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

Examples

[C#]

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

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

See Also