Export (0) Print
Expand All

ProjectItemDefinitionElement Properties

The ProjectItemDefinitionElement type exposes the following members.

  Name Description
Public property AllChildren Gets a recursive depth-first enumerator over all child elements. (Inherited from ProjectElementContainer.)
Public property AllParents All parent elements of this element, going up to the ProjectRootElement. None if this is a ProjectRootElement. None if this has not been attached to a parent yet. (Inherited from ProjectElement.)
Public property Children Gets all child elements. (Inherited from ProjectElementContainer.)
Public property ChildrenReversed Gets all child elements, starting from the last child. (Inherited from ProjectElementContainer.)
Public property Condition Gets or sets the Condition value. It will return empty string IFF a condition attribute is legal but it’s not present or has no value. It will return null IFF a Condition attribute is illegal on that element. Removes the attribute if the value to set is empty. It is possible for derived classes to throw an InvalidOperationException if setting the condition is not applicable for those elements. (Inherited from ProjectElement.)
Public property ConditionLocation Location of the "Condition" attribute on this element, if any. If there is no such attribute, returns null. (Inherited from ProjectElement.)
Public property ContainingProject ProjectRootElement (possibly imported) that contains this Xml. Cannot be null. (Inherited from ProjectElement.)
Public property Count Gets the number of child elements. (Inherited from ProjectElementContainer.)
Public property FirstChild Gets the first child element. (Inherited from ProjectElementContainer.)
Public property ItemType Gets the item definition element name.
Public property Label Gets or sets the Label value. Returns empty string if it is not present. Removes the attribute if the value to set is empty. (Inherited from ProjectElement.)
Public property LabelLocation Location of the "Label" attribute on this element, if any. If there is no such attribute, returns null; (Inherited from ProjectElement.)
Public property LastChild Gets the last child element. (Inherited from ProjectElementContainer.)
Public property Location Location of the corresponding Xml element. May not be correct if file is not saved, or file has been edited since it was last saved. In the case of an unsaved edit, the location only contains the path to the file that the element originates from. (Inherited from ProjectElement.)
Public property Metadata Gets all child metadata definitions.
Public property NextSibling Next sibling element. May be null. (Inherited from ProjectElement.)
Public property Parent Null if this is a ProjectRootElement. Null if this has not been attached to a parent yet. (Inherited from ProjectElement.)
Public property PreviousSibling Previous sibling element. May be null. (Inherited from ProjectElement.)
Top
Show:
© 2014 Microsoft