ArcGIS Pro 2.9 API Reference Guide
GetHistoricalVersion(DateTime) Method

ArcGIS.Core.Data Namespace > VersionManager Class > GetHistoricalVersion Method : GetHistoricalVersion(DateTime) Method
The time stamp of the HistoricalVersion to return.
Gets a HistoricalVersion object with the specified moment. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public HistoricalVersion GetHistoricalVersion( 
   DateTime moment
)
Public Overloads Function GetHistoricalVersion( _
   ByVal moment As Date _
) As HistoricalVersion

Parameters

moment
The time stamp of the HistoricalVersion to return.

Return Value

The HistoricalVersion that corresponds to moment.
Exceptions
ExceptionDescription
A geodatabase-related exception has occurred.
This method or property must be called within the lambda passed to QueuedTask.Run
Remarks
The moment passed into this routine has different meanings, depending on the type of versioning in use:
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

VersionManager Class
VersionManager Members
Overload List