RefactoringOperation.OnError Method
Displays an error message if an error occurs during the refactoring operation.
Namespace: Microsoft.VisualStudio.Data.Schema.Project.Refactoring
Assembly: Microsoft.VisualStudio.Data.Schema.Project (in Microsoft.VisualStudio.Data.Schema.Project.dll)
Syntax
'Declaration
Protected Sub OnError ( _
errorMessage As String _
)
'Usage
Dim errorMessage As String
Me.OnError(errorMessage)
protected void OnError(
string errorMessage
)
protected:
void OnError(
String^ errorMessage
)
protected function OnError(
errorMessage : String
)
member OnError :
errorMessage:string -> unit
Parameters
- errorMessage
Type: System.String
The text to be displayed
Remarks
This method can be called from any of the other methods that you implement in classes derived from [RefactoringOperation].
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.VisualStudio.Data.Schema.Project.Refactoring Namespace