AddItems() публичный Метод

public AddItems ( WixEntity items ) : void
items WixEntity
Результат void
Пример #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Dir"/> class with properties/fields initialized with specified parameters
        /// </summary>
        /// <param name="id">The explicit <see cref="Id"></see> to be associated with <see cref="Dir"/> instance.</param>
        /// <param name="targetPath">The name of the directory. Note if the directory is a root installation directory <c>targetPath</c> must
        /// be specified as a full path. However if the directory is a nested installation directory the name must be a directory name only.</param>
        /// <param name="items">Any <see cref="WixEntity"/> which can be contained by directory (e.g. file, subdirectory).</param>
        public Dir(Id id, string targetPath, params WixEntity[] items)
        {
            Dir lastDir = ProcessTargetPath(targetPath);

            lastDir.AddItems(items);
            lastDir.Id = id;
        }
Пример #2
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Dir"/> class with properties/fields initialized with specified parameters
        /// </summary>
        /// <param name="feature"><see cref="Feature"></see> the directory should be included in.</param>
        /// <param name="targetPath">The name of the directory. Note if the directory is a root installation directory <c>targetPath</c> must
        /// be specified as a full path. However if the directory is a nested installation directory the name must be a directory name only.</param>
        /// <param name="items">Any <see cref="WixEntity"/> which can be contained by directory (e.g. file, subdirectory).</param>
        public Dir(Feature feature, string targetPath, params WixEntity[] items)
        {
            Dir lastDir = ProcessTargetPath(targetPath);

            lastDir.AddItems(items);
            lastDir.Feature = feature;
        }
Пример #3
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Dir"/> class with properties/fields initialized with specified parameters.
 /// </summary>
 /// <param name="id">The explicit <see cref="Id"></see> to be associated with <see cref="Dir"/> instance.</param>
 /// <param name="feature"><see cref="Feature"></see> the directory should be included in.</param>
 /// <param name="targetPath">The name of the directory. Note if the directory is a root installation directory <c>targetPath</c> must
 /// be specified as a full path. However if the directory is a nested installation directory the name must be a directory name only.</param>
 /// <param name="items">Any <see cref="WixEntity"/> which can be contained by directory (e.g. file, subdirectory).</param>
 public Dir(Id id, Feature feature, string targetPath, params WixEntity[] items)
 {
     this.Feature = feature;
     lastDir      = ProcessTargetPath(targetPath);
     lastDir.AddItems(items);
     lastDir.Id      = id;
     lastDir.Feature = feature;
 }
Пример #4
0
 /// <summary>
 /// Initializes a new instance of the <see cref="Dir"/> class with properties/fields initialized with specified parameters
 /// </summary>
 /// <param name="targetPath">The name of the directory. Note if the directory is a root installation directory <c>targetPath</c> must
 /// be specified as a full path. However if the directory is a nested installation directory the name must be a directory name only.</param>
 /// <param name="items">Any <see cref="WixEntity"/> which can be contained by directory (e.g. file, subdirectory).</param>
 public Dir(string targetPath, params WixEntity[] items)
 {
     lastDir = ProcessTargetPath(targetPath);
     lastDir.AddItems(items);
 }