コード例 #1
0
        public static CSEntryChange ToCSEntryChange(this MAObjectHologram hologram, IEnumerable <AcmaSchemaAttribute> requiredAttributes)
        {
            string objectClassName = hologram.ObjectClass == null ? hologram.DeltaObjectClassName : hologram.ObjectClass.Name;

            if (objectClassName == null)
            {
                throw new ArgumentNullException("objectClassName", string.Format("The object class for the object {0} was not present", hologram.ObjectID));
            }

            if (hologram.DeltaChangeType != "delete")
            {
                hologram.PreLoadAVPs();
            }

            return(GetCSEntry(hologram, requiredAttributes));
        }