/// <summary>
 /// Instantiate a new WixMultiplePrimaryReferencesException.
 /// </summary>
 /// <param name="sourceLineNumbers">Source line information of the exception.</param>
 /// <param name="cref">Complex reference with conflicting primary references.</param>
 /// <param name="conflictingParentId">Id of the comflicting parent.</param>
 internal WixMultiplePrimaryReferencesException(SourceLineNumberCollection sourceLineNumbers, ComplexReference cref, string conflictingParentId)
     : base(sourceLineNumbers, WixExceptionType.MultiplePrimaryReferences)
 {
     this.cref = cref;
     this.conflictingParentId = conflictingParentId;
 }
 /// <summary>
 /// Adds a complex reference to the collection.
 /// </summary>
 /// <param name="complexRef">Complex reference to add to the collection.</param>
 public void Add(ComplexReference complexRef)
 {
     this.collection.Add(complexRef);
 }
Пример #3
0
 /// <summary>
 /// Adds a complex reference to the active section.
 /// </summary>
 /// <param name="complexReference">Complex reference to add.</param>
 internal void AddComplexReference(ComplexReference complexReference)
 {
     this.activeSection.ComplexReferences.Add(complexReference);
 }
 /// <summary>
 /// Instantiate a new WixMultiplePrimaryReferencesException.
 /// </summary>
 /// <param name="sourceLineNumbers">Source line information of the exception.</param>
 /// <param name="cref">Complex reference with conflicting primary references.</param>
 /// <param name="conflictingParentId">Id of the comflicting parent.</param>
 internal WixMultiplePrimaryReferencesException(SourceLineNumberCollection sourceLineNumbers, ComplexReference cref, string conflictingParentId) :
     base(sourceLineNumbers, WixExceptionType.MultiplePrimaryReferences)
 {
     this.cref = cref;
     this.conflictingParentId = conflictingParentId;
 }
Пример #5
0
 /// <summary>
 /// Adds a complex reference to the collection.
 /// </summary>
 /// <param name="complexRef">Complex reference to add to the collection.</param>
 public void Add(ComplexReference complexRef)
 {
     this.collection.Add(complexRef);
 }
Пример #6
0
 /// <summary>
 /// Adds a complex reference to the active section.
 /// </summary>
 /// <param name="complexReference">Complex reference to add.</param>
 internal void AddComplexReference(ComplexReference complexReference)
 {
     this.activeSection.ComplexReferences.Add(complexReference);
 }