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: System.String
The path to the file.
- time
Type: System.DateTime
The DateTime when the file action occurred.
- fileActionType
Type: Microsoft.VisualStudio.Text.FileActionTypes
The FileActionTypes that occurred.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | filePath is nulla null reference (Nothing in Visual Basic). |
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.