コード例 #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DismPackageInfo" /> class.
        /// </summary>
        /// <param name="packageInfo">A <see cref="DismApi.DismPackageInfo_" /> struct containing data for this object.</param>
        internal DismPackageInfo(DismApi.DismPackageInfo_ packageInfo)
        {
            _packageInfo = packageInfo;

            CreationTime   = _packageInfo.CreationTime;
            InstallTime    = _packageInfo.InstallTime;
            LastUpdateTime = _packageInfo.LastUpdateTime;

            CustomProperties = new DismCustomPropertyCollection(_packageInfo.CustomProperty, _packageInfo.CustomPropertyCount);

            Features = new DismFeatureCollection(_packageInfo.Feature, _packageInfo.FeatureCount);
        }
コード例 #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="DismFeatureInfo" /> class.
        /// </summary>
        /// <param name="featureInfoPtr">A pointer to a <see cref="DismApi.DismFeatureInfo_" /> struct.</param>
        internal DismFeatureInfo(IntPtr featureInfoPtr)
        {
            _featureInfo = featureInfoPtr.ToStructure <DismApi.DismFeatureInfo_>();

            CustomProperties = new DismCustomPropertyCollection(_featureInfo.CustomProperty, _featureInfo.CustomPropertyCount);
        }