ArcGIS Pro 3.0 API Reference Guide
ArcGIS.Core.Data Namespace / PostOptions Class / TargetVersion Property

TargetVersion Property (PostOptions)
Gets the target Version to be posted against. If null, the target is the default version.
Syntax
public Version TargetVersion {get;}
Remarks
This property is not valid for branch versioning.
Requirements

Target Platforms: Windows 11, Windows 10, Windows 8.1

ArcGIS Pro version: 3.0 or higher.
See Also