UtilPeHeaderGetTimeStamp(FileInfo) Method
Gets the compilation timestamp of the specified .NET assembly.
Namespace: DevCase.Core.Diagnostics.AssemblyAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static DateTimeOffset GetTimeStamp(
FileInfo file
)
Public Shared Function GetTimeStamp (
file As FileInfo
) As DateTimeOffset
Dim file As FileInfo
Dim returnValue As DateTimeOffset
returnValue = UtilPeHeader.GetTimeStamp(file)
public:
static DateTimeOffset GetTimeStamp(
FileInfo^ file
)
static member GetTimeStamp :
file : FileInfo -> DateTimeOffset
No code example is currently available or this language may not be supported.
- file FileInfo
-
The assembly file.
DateTimeOffset
The resulting timestamp.
This is a code example.
No code example is currently available or this language may not be supported.
Dim assemblyFile As New FileInfo("C:\Assembly.exe")
Dim timeStamp As DateTimeOffset = GetTimeStamp(assemblyFile)
Console.WriteLine(timeStamp.ToString("dd/MMMM/yyyy HH:mm:ss", CultureInfo.InvariantCulture))
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.