提供在从磁盘加载 ITextDocument 或将其保存到磁盘之后引发的事件的信息。
继承层次结构
Object
EventArgs
Microsoft.VisualStudio.Text.TextDocumentFileActionEventArgs
命名空间: Microsoft.VisualStudio.Text
程序集: Microsoft.VisualStudio.Text.Data(在 Microsoft.VisualStudio.Text.Data.dll 中)
语法
声明
Public Class TextDocumentFileActionEventArgs _
Inherits EventArgs
public class TextDocumentFileActionEventArgs : EventArgs
public ref class TextDocumentFileActionEventArgs : public EventArgs
type TextDocumentFileActionEventArgs =
class
inherit EventArgs
end
public class TextDocumentFileActionEventArgs extends EventArgs
TextDocumentFileActionEventArgs 类型公开以下成员。
构造函数
名称 | 说明 | |
---|---|---|
![]() |
TextDocumentFileActionEventArgs | 针对文件操作事件初始化 TextDocumentFileActionEventArgs 的新实例。 |
页首
属性
名称 | 说明 | |
---|---|---|
![]() |
FileActionType | 获取已发生的 FileActionTypes。 |
![]() |
FilePath | 获取文件路径。 |
![]() |
Time | 获取执行文件操作的 DateTime。 |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
Finalize | 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
GetHashCode | 作为默认哈希函数。 (继承自 Object。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
备注
此类提供事件的信息 (如 FileActionOccurred。
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。