Share via


DataTransferEventArgs Class

The DataTransferEventArgs class represents the arguments used when a data transfer event is raised.

Inheritance Hierarchy

System.Object
  System.EventArgs
    Microsoft.SqlServer.Management.Common.DataTransferEventArgs

Namespace:  Microsoft.SqlServer.Management.Common
Assembly:  Microsoft.SqlServer.ConnectionInfo (in Microsoft.SqlServer.ConnectionInfo.dll)

Syntax

'Declaration
Public Class DataTransferEventArgs _
    Inherits EventArgs
'Usage
Dim instance As DataTransferEventArgs
public class DataTransferEventArgs : EventArgs
public ref class DataTransferEventArgs : public EventArgs
type DataTransferEventArgs =  
    class 
        inherit EventArgs 
    end
public class DataTransferEventArgs extends EventArgs

The DataTransferEventArgs type exposes the following members.

Constructors

  Name Description
Public method DataTransferEventArgs Initializes a new instance of the DataTransferEventArgs class for the specified event and with the specified message.

Top

Properties

  Name Description
Public property DataTransferEventType Gets the type of data transfer event associated with the DataTransferEventArgs object.
Public property Message Gets the message text associated with the DataTransferEventType object.

Top

Methods

  Name Description
Public method Equals (Inherited from Object.)
Protected method Finalize (Inherited from Object.)
Public method GetHashCode (Inherited from Object.)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString (Inherited from Object.)

Top

Remarks

The DataTransferEventArgs class is used by the DataTransferEventHandler when a data transfer event occurs.

Thread Safety

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

Examples

Handling SMO Events

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.SqlServer.Management.Common Namespace