Sdílet prostřednictvím


DkmFileInfo.Create Method

Definition

Create a new DkmFileInfo object instance.

public:
 static Microsoft::VisualStudio::Debugger::DefaultPort::DkmFileInfo ^ Create(System::String ^ FileName, System::String ^ FilePath, int Attributes, System::UInt64 CreationTime, System::UInt64 LastAccessTime, System::UInt64 LastWriteTime, System::UInt64 FileSize);
public:
 static Microsoft::VisualStudio::Debugger::DefaultPort::DkmFileInfo ^ Create(Platform::String ^ FileName, Platform::String ^ FilePath, int Attributes, unsigned long long CreationTime, unsigned long long LastAccessTime, unsigned long long LastWriteTime, unsigned long long FileSize);
 static Microsoft::VisualStudio::Debugger::DefaultPort::DkmFileInfo Create(std::wstring const & FileName, std::wstring const & FilePath, int Attributes, unsigned long CreationTime, unsigned long LastAccessTime, unsigned long LastWriteTime, unsigned long FileSize);
public static Microsoft.VisualStudio.Debugger.DefaultPort.DkmFileInfo Create (string FileName, string FilePath, int Attributes, ulong CreationTime, ulong LastAccessTime, ulong LastWriteTime, ulong FileSize);
static member Create : string * string * int * uint64 * uint64 * uint64 * uint64 -> Microsoft.VisualStudio.Debugger.DefaultPort.DkmFileInfo
Public Shared Function Create (FileName As String, FilePath As String, Attributes As Integer, CreationTime As ULong, LastAccessTime As ULong, LastWriteTime As ULong, FileSize As ULong) As DkmFileInfo

Parameters

FileName
String

[In] Name of the file or sub directory. This name does not contain the directory (ex: example.txt instead of c:\folder\example.txt).

FilePath
String

[In] Full path to the file or sub directory (ex: c:\folder\example.txt).

Attributes
Int32

[In] Win32 File attribute values (ex: FILE_ATTRIBUTE_DIRECTORY (0x10)).

CreationTime
UInt64

[In] Time the the file was created in FILETIME units (number of 100-nanosecond intervals since January 1, 1601 (UTC)).

LastAccessTime
UInt64

[In] Time the file was accessed in FILETIME units (number of 100-nanosecond intervals since January 1, 1601 (UTC)).

LastWriteTime
UInt64

[In] Time the file was written to in FILETIME units (number of 100-nanosecond intervals since January 1, 1601 (UTC)).

FileSize
UInt64

[In] Size of the file in bytes.

Returns

[Out] Result of this method call.

Applies to