Share via


ExportErrorEventArgs Class

Represents the arguments for the ExportErrorEventArgs class.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.VisualStudio.Modeling.Shell.ExportErrorEventArgs

Namespace:  Microsoft.VisualStudio.Modeling.Shell
Assembly:  Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0 (in Microsoft.VisualStudio.Modeling.Sdk.Shell.10.0.dll)

Syntax

'Declaration
Public Class ExportErrorEventArgs _
    Inherits EventArgs
public class ExportErrorEventArgs : EventArgs
public ref class ExportErrorEventArgs : public EventArgs
type ExportErrorEventArgs =  
    class
        inherit EventArgs
    end
public class ExportErrorEventArgs extends EventArgs

The ExportErrorEventArgs type exposes the following members.

Constructors

  Name Description
Public method ExportErrorEventArgs(Int32, String) Initializes a new instance of the ExportErrorEventArgs class.
Public method ExportErrorEventArgs(Int32, String, Exception) Initializes a new instance of the ExportErrorEventArgs class.

Top

Properties

  Name Description
Public property Continue Gets and sets continueExporting, which determines whether the current operation should continue to export diagrams if an error occurs.
Public property ErrorMessage Gets the error message for the error.
Public property Exception Gets the error that occurred when the current diagram was being exported.
Public property ExportedDiagramsCount Gets the number of diagrams that were exported before the error occurred.
Public property ProjectFile Gets the file name of the diagram that was being exported when the error occurred.

Top

Methods

  Name Description
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetType Gets the Type of the current instance. (Inherited from Object.)
Protected method MemberwiseClone Creates a shallow copy of the current Object. (Inherited from Object.)
Public method ToString Returns a string that represents the current object. (Inherited from Object.)

Top

Remarks

You use this class with the DiagramExporter class, which exports diagrams to disk as images. ExportErrorEvent calls this class. You can provide an event callback to DiagramExporter so that when an error occurs, the event is raised with this ExportErrorEventArgs object.

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

Microsoft.VisualStudio.Modeling.Shell Namespace