Share via


AspNetManagementUtility.ReadFileDates(String, String, String, String) 方法

定义

返回指定文件名的创建、修改和上次访问的日期和时间。

此 API 支持产品基础结构,不能在代码中直接使用。

public:
 virtual void ReadFileDates(System::String ^ filename, [Runtime::InteropServices::Out] System::String ^ % creationDate, [Runtime::InteropServices::Out] System::String ^ % modifiedDate, [Runtime::InteropServices::Out] System::String ^ % lastAccessDate);
public void ReadFileDates (string filename, out string creationDate, out string modifiedDate, out string lastAccessDate);
abstract member ReadFileDates : string * string * string * string -> unit
override this.ReadFileDates : string * string * string * string -> unit
Public Sub ReadFileDates (filename As String, ByRef creationDate As String, ByRef modifiedDate As String, ByRef lastAccessDate As String)

参数

filename
String

要从中读取日期的文件的名称。

creationDate
String

文件的创建日期和时间。

modifiedDate
String

文件的修改日期和时间。

lastAccessDate
String

上次访问文件的日期和时间。

实现

注解

有关使用 AspNetManagementUtility 类和 Microsoft 管理控制台 (MMC) 编程的详细信息,请参阅 MMC 程序员指南

适用于