问题描述:即应用程序无权创建或修改此类数据的模式
在10.x中版本下,在Program.cs中添加一行代码:
ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.EngineOrDesktop,ESRI.ArcGIS.LicenseLevel.GeodatabaseUpdate);
如下Program.cs文件
using System;
using System.Collections.Generic;
using System.Windows.Forms;
using ESRI.ArcGIS;
namespace GIS
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
if (!RuntimeManager.Bind(ProductCode.Engine))
{
if (!RuntimeManager.Bind(ProductCode.Desktop))
{
MessageBox.Show("Unable to bind to ArcGIS runtime. Application will be shut down.");
return;
}
}
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
ESRI.ArcGIS.RuntimeManager.BindLicense(ESRI.ArcGIS.ProductCode.EngineOrDesktop, ESRI.ArcGIS.LicenseLevel.GeodatabaseUpdate);
//ESRI.ArcGIS.RuntimeManager.Bind(ESRI.ArcGIS.ProductCode.EngineOrDesktop);
Application.Run(new MainForm());
}
}
}
本文介绍如何在10.x版本的ArcGIS应用程序中设置许可,通过在Program.cs文件中添加特定代码来实现对地理数据库更新权限的绑定。
5400

被折叠的 条评论
为什么被折叠?



