标签:
private void ChangeFeatureClassAliasName(IFeatureClass pFeatureClass, string aliasName) { ISchemaLock schemaLock = pFeatureClass as ISchemaLock; try { schemaLock.ChangeSchemaLock(esriSchemaLock.esriExclusiveSchemaLock); IClassSchemaEdit classSchemaEdit = pFeatureClass as IClassSchemaEdit; classSchemaEdit.AlterAliasName(aliasName); } catch (COMException comExc) { throw comExc; } finally { schemaLock.ChangeSchemaLock(esriSchemaLock.esriSharedSchemaLock); } }
标签:
原文地址:http://www.cnblogs.com/janehlp/p/4557015.html