Project.ThrowInsteadOfSplittingItemElement Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Certain item operations split the item element in multiple elements if the include contains globs, references to items or properties, or multiple item values.
The items operations that may expand item elements are:
- RemoveItem(ProjectItem)
- RemoveItems(IEnumerable<ProjectItem>)
- AddItem(String, String, IEnumerable<KeyValuePair<String,String>>)
- AddItemFast(String, String, IEnumerable<KeyValuePair<String,String>>)
- Microsoft.Build.Evaluation.ProjectItem.ChangeItemType(System.String)
- Rename(String)
- RemoveMetadata(String)
- SetMetadataValue(String, String)
- SetMetadataValue(String, String, Boolean)
When this property is set to true, the previous item operations throw an InvalidOperationException instead of expanding the item element.
public:
property bool ThrowInsteadOfSplittingItemElement { bool get(); void set(bool value); };
public bool ThrowInsteadOfSplittingItemElement { get; set; }
member this.ThrowInsteadOfSplittingItemElement : bool with get, set
Public Property ThrowInsteadOfSplittingItemElement As Boolean