ArcGIS Pro SDK (七)编辑 15 版本控制选项
文章目录
- [ArcGIS Pro SDK (七)编辑 15 版本控制选项](#ArcGIS Pro SDK (七)编辑 15 版本控制选项)
环境:Visual Studio 2022 + .NET6 + ArcGIS Pro SDK 3.0
获取和设置版本控制选项
csharp
var vOptions = ApplicationOptions.VersioningOptions;
vOptions.DefineConflicts = (vOptions.DefineConflicts == ConflictDetectionType.ByRow) ?
ConflictDetectionType.ByColumn : ConflictDetectionType.ByRow;
vOptions.ConflictResolution = (
vOptions.ConflictResolution == ConflictResolutionType.FavorEditVersion) ?
ConflictResolutionType.FavorTargetVersion : ConflictResolutionType.FavorEditVersion;
vOptions.ShowConflictsDialog = !vOptions.ShowConflictsDialog;
vOptions.ShowReconcileDialog = !vOptions.ShowReconcileDialog;