ArcGIS Pro 2.6 API Reference Guide
GetVersion Method (VersionManager)

ArcGIS.Core.Data Namespace > VersionManager Class : GetVersion Method
The name of the Version to return.
Gets a Version object with the specified name. This method must be called on the MCT. Use QueuedTask.Run.
Syntax
public Version GetVersion( 
   string name
)
Public Function GetVersion( _
   ByVal name As String _
) As Version

Parameters

name
The name of the Version to return.

Return Value

The Version that corresponds to name.
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