IClassSchemaEdit修改要素類信息

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);
            }
        }

  

更多相关文章
一周排行