TextDocumentFileActionEventArgs Constructors

Definition

Overloads

TextDocumentFileActionEventArgs(String, DateTime, FileActionTypes)

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

TextDocumentFileActionEventArgs(String, String, DateTime, FileActionTypes)

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

TextDocumentFileActionEventArgs(String, DateTime, FileActionTypes)

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

public:
 TextDocumentFileActionEventArgs(System::String ^ filePath, DateTime time, Microsoft::VisualStudio::Text::FileActionTypes fileActionType);
public TextDocumentFileActionEventArgs (string filePath, DateTime time, Microsoft.VisualStudio.Text.FileActionTypes fileActionType);
new Microsoft.VisualStudio.Text.TextDocumentFileActionEventArgs : string * DateTime * Microsoft.VisualStudio.Text.FileActionTypes -> Microsoft.VisualStudio.Text.TextDocumentFileActionEventArgs
Public Sub New (filePath As String, time As DateTime, fileActionType As FileActionTypes)

Parameters

filePath
String

The path to the file.

time
DateTime

The DateTime when the file action occurred.

fileActionType
FileActionTypes

The FileActionTypes that occurred.

Exceptions

filePath is null.

Applies to

TextDocumentFileActionEventArgs(String, String, DateTime, FileActionTypes)

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

public TextDocumentFileActionEventArgs (string oldFilePath, string newFilePath, DateTime time, Microsoft.VisualStudio.Text.FileActionTypes fileActionType);
new Microsoft.VisualStudio.Text.TextDocumentFileActionEventArgs : string * string * DateTime * Microsoft.VisualStudio.Text.FileActionTypes -> Microsoft.VisualStudio.Text.TextDocumentFileActionEventArgs
Public Sub New (oldFilePath As String, newFilePath As String, time As DateTime, fileActionType As FileActionTypes)

Parameters

oldFilePath
String

The old path to the file.

newFilePath
String

The new path to the file.

time
DateTime

The DateTime when the file action occurred.

fileActionType
FileActionTypes

The FileActionTypes that occurred.

Exceptions

oldFilePath or newFilePath are null.

Applies to