Share via


DataTransferEventArgs Constructor

Initializes a new instance of the DataTransferEventArgs class for the specified event and with the specified message.

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

Syntax

'Declaration
Public Sub New ( _
    eventType As DataTransferEventType, _
    message As String _
)
'Usage
Dim eventType As DataTransferEventType 
Dim message As String 

Dim instance As New DataTransferEventArgs(eventType, _
    message)
public DataTransferEventArgs(
    DataTransferEventType eventType,
    string message
)
public:
DataTransferEventArgs(
    DataTransferEventType eventType, 
    String^ message
)
new : 
        eventType:DataTransferEventType * 
        message:string -> DataTransferEventArgs
public function DataTransferEventArgs(
    eventType : DataTransferEventType, 
    message : String
)

Parameters

  • message
    Type: String
    A string value that specifies the message text associated with the DataTransferEventType object.

Remarks

The default constructor initializes any fields to their default values.

See Also

Reference

DataTransferEventArgs Class

Microsoft.SqlServer.Management.Common Namespace