arcgis - 如何以编程方式在 ArcObjects 10.3 for .net 中为表配置编辑器跟踪?
问题描述
我将 ArcObjects 用于 ArcGis 10.3 的 .net。
我没有找到任何接口来配置 GDB 数据库表的编辑器跟踪。
如何以编程方式为表配置编辑器跟踪?
我找到了接口 IDEEditorTracking 但我没有找到使用它的方法。
解决方案
For your reference..first you need to find the dataelement(IDataElement) and then use enable editor geoprocessing tool..
IWorkspace pworkspace = ((IDataset)pfeaturelayer.FeatureClass).Workspace;
IGeoProcessor pGP = new GeoProcessor();
IGPDataType pGPDataType = new DEFeatureClassType() as IGPDataType;
IDataElement pDataElement = pGP.GetDataElement(pworkspace.PathName, pGPDataType);
IDEEditorTracking editorTracking = (IDEEditorTracking)pDataElement;
if (!editorTracking.EditorTrackingEnabled)
{
//now use Enable Editor Tracking geoprocessor tool
}
推荐阅读
- r - 将 for 循环中的 i 视为向量而不是 R 中的字符
- ios - Apple IOS OTP 自动填充 SMS api 正确标准
- c# - How to send payload with web-push-csharp
- python - 正方体没有正确重新学习
- reactjs - fluent ui details 功能组件中的列表实现
- arrays - JSON模式:通过选项强制执行数组内容
- reactjs - CSS 更改未反映在 React 与 React Hooks 中的关联状态更改上
- c# - 具有 NTLM 身份验证的 C# HttpClient 未传递正确的凭据
- php - 计算一起购买的产品
- python - 在 Python 中动态参数化多个测试