TimeHelpers.ToComFileTime Method (DateTime, Boolean)
Converts a DateTime object to a COM FILETIME object.
Namespace: Microsoft.ConfigurationManagement.Messaging.Framework
Assembly: Microsoft.ConfigurationManagement.Messaging (in Microsoft.ConfigurationManagement.Messaging.dll)
Syntax
public static FILETIME ToComFileTime(
this DateTime dateTime,
bool utc
)
public:
[ExtensionAttribute]
static FILETIME ToComFileTime(
DateTime dateTime,
bool utc
)
<ExtensionAttribute>
Public Shared Function ToComFileTime (
dateTime As Date,
utc As Boolean
) As FILETIME
Parameters
dateTime
Type: System.DateTimeDate/time as DateTime.
utc
Type: System.BooleanIf true, returns time as UTC; otherwise, returns local time.
Return Value
Type: System.Runtime.InteropServices.ComTypes.FILETIME
See Also
ToComFileTime Overload
TimeHelpers Class
Microsoft.ConfigurationManagement.Messaging.Framework Namespace
Return to top