ArcGIS Pro 2.6 API Reference Guide
GetVersionNames Method

ArcGIS.Core.Data Namespace > VersionManager Class : GetVersionNames Method
Gets a IReadOnlyList of the names of all available Version in a given enterprise geodatabase. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public IReadOnlyList<string> GetVersionNames()
Public Function GetVersionNames() As IReadOnlyList(Of String)

Return Value

A IReadOnlyList of the names of all available Version in a given enterprise geodatabase.
Exceptions
ExceptionDescription
A geodatabase-related exception has occurred.
Requirements

Target Platforms: Windows 10, Windows 8.1, Windows 7

See Also

Reference

VersionManager Class
VersionManager Members