public void DataSet_Register(ref IStepProgressor pStepProgressor , ref IDataset pGISDataset ) { IEnumDataset pEnumDataset; IDataset pDataset; IVersionedObject pVersionedObject;
try { //DataSet_Register = "" '过程错误标志 ""正确,"F"错误 if(pGISDataset!=null) { pVersionedObject =(IVersionedObject)pGISDataset; if (pVersionedObject.IsRegisteredAsVersioned) pStepProgressor.Message = "GIS图层已经注册"; else { pStepProgressor.Message = "GIS图层正在进行版本注册"; pVersionedObject.RegisterAsVersioned(true); pStepProgressor.Message = "GIS图层注册成功"; } pVersionedObject = null; } } catch { } }
|
请发表评论