将SDE数据库中的要素类注册为版本
IVersionedObject3 versionedObject = (IVersionedObject3)featureLayer.FeatureClass;
bool IsRegistered;
bool IsMovingEditsToBase;
versionedObject.GetVersionRegistrationInfo(out IsRegistered, out IsMovingEditsToBase);
if (IsRegistered == false)
{
if (IsMovingEditsToBase == false)
{
versionedObject.RegisterAsVersioned3(true);
}
}
转载自:https://blog.csdn.net/ls870061011/article/details/8772335