Пример #1
0
        /// <summary>
        /// Creates an 'inherit' object that contains common settings.
        /// </summary>
        /// <param name="id">The identity of the object to create</param>
        /// <param name="inheritType">The type of object the settings apply to</param>
        /// <returns>The object representing the new settings</returns>
        public BcdObject CreateInherit(Guid id, InheritType inheritType)
        {
            Guid obj = _store.CreateObject(id, BcdObject.MakeInheritType(inheritType));

            return(new BcdObject(_store, obj));
        }
Пример #2
0
        /// <summary>
        /// Creates an application object.
        /// </summary>
        /// <param name="id">The identity of the object to create</param>
        /// <param name="imageType">The image type of the application</param>
        /// <param name="appType">The application's type</param>
        /// <returns>The object representing the new application</returns>
        public BcdObject CreateApplication(Guid id, ApplicationImageType imageType, ApplicationType appType)
        {
            Guid obj = _store.CreateObject(id, BcdObject.MakeApplicationType(imageType, appType));

            return(new BcdObject(_store, obj));
        }