.NET Framework Class Library
File.GetSizeAndDates Method

<< Click to Display Table of Contents >>

Navigation:  Programming Mechworks PDM > .NET API > MwPDMApi Namespace > File Class > File Methods >

.NET Framework Class Library
File.GetSizeAndDates Method

This command allows the reading of the file size and dates with administrative priviledges, when needed.

Namespace: MwPDMApi
Assembly:  MwPDMApi (in MwPDMApi.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

Visual Basic

Public Function GetSizeAndDates ( _

fullPath As String, _
Optional useUTC As Boolean = False _
) As ShellResult

C#

public ShellResult GetSizeAndDates(

string fullPath,
bool useUTC = false
)

Visual C++

public:

ShellResult^ GetSizeAndDates(
String^ fullPath,
bool useUTC = false
)

JavaScript

function getSizeAndDates(fullPath, useUTC);

Parameters

fullPath

Type: System.String
The full path of the file

useUTC (Optional)

Type: System.Boolean
False (default): returns the date/time according to local pc format settings.

True: returns the date/time in UTC format

Return Value

ShellResult object to access results: "@FILE_SIZE", "@FILE_CREATION_TIME", "@FILE_LAST_MODIFIED_TIME", "@FILE_ACCESS_TIME", ...

See Also

File Class

File Members

MwPDMApi Namespace