ArcGIS Pro 2.9 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.
This method or property must be called within the lambda passed to QueuedTask.Run
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

See Also

Reference

VersionManager Class
VersionManager Members