Delen via


TextDocumentFileActionEventArgs Constructor

Initializes a new instance of a TextDocumentFileActionEventArgs for a file action event.

Namespace:  Microsoft.VisualStudio.Text
Assembly:  Microsoft.VisualStudio.Text.Data (in Microsoft.VisualStudio.Text.Data.dll)

Syntax

'Declaration
Public Sub New ( _
    filePath As String, _
    time As DateTime, _
    fileActionType As FileActionTypes _
)
public TextDocumentFileActionEventArgs(
    string filePath,
    DateTime time,
    FileActionTypes fileActionType
)
public:
TextDocumentFileActionEventArgs(
    String^ filePath, 
    DateTime time, 
    FileActionTypes fileActionType
)
new : 
        filePath:string * 
        time:DateTime * 
        fileActionType:FileActionTypes -> TextDocumentFileActionEventArgs
public function TextDocumentFileActionEventArgs(
    filePath : String, 
    time : DateTime, 
    fileActionType : FileActionTypes
)

Parameters

  • filePath
    Type: String

    The path to the file.

  • time
    Type: DateTime

    The DateTime when the file action occurred.

Exceptions

Exception Condition
ArgumentNullException

filePath is nulla null reference (Nothing in Visual Basic).

.NET Framework Security

See Also

Reference

TextDocumentFileActionEventArgs Class

Microsoft.VisualStudio.Text Namespace