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;
相关推荐
猿长大人1 天前
C# | JSON 序列化中的多态接口处理:基于 Attribute 实现精准 $type 控制
c#·json
一位狮子座的程序员1 天前
如何用RAG解决AI智能体的知识盲区?
开发语言·c#
Nemo_XP1 天前
C# gridlookupedit选中内容重复还原操作
服务器·前端·c#
猿长大人1 天前
C# | 函数式编程入门
开发语言·c#·.net
unityのkiven1 天前
C# 中的奇异递归模板模式:MonoSingleton<T> 的实现
java·开发语言·c#
雪隐1 天前
WPF + MVVM 实战系列02-告别 INPC 手写时代,做个体面的现代 WPF 人
前端·后端·c#
我是苏苏1 天前
WPF开发01:基础控件及常用模板篇
开发语言·c#·html·wpf
BerrySen1782 天前
现代 C# 全栈与高性能编程实战指南:从 CLR 底层机制到 AI Agent 智能体架构
人工智能·架构·c#
在世修行2 天前
从零打造 C# 工业视觉检测系统(六):OpenCV 图像处理与像素级比例尺标定
opencv·c#·视觉检测
GISerQ.2 天前
DWG格式文件导入到ArcGIS中
arcgis·shp·cad文件·dwg文件