ProjectElementContainer Class

ProjectElementContainer Class

.NET Framework (current version)
 

Provides an abstract container class for project elements.

Namespace:   Microsoft.Build.Construction
Assembly:  Microsoft.Build (in Microsoft.Build.dll)


public abstract class ProjectElementContainer : ProjectElement

NameDescription
System_CAPS_pubpropertyAllChildren

Gets a recursive depth-first enumerator over all child elements.

System_CAPS_pubpropertyAllParents

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.)

System_CAPS_pubpropertyChildren

Gets all child elements.

System_CAPS_pubpropertyChildrenReversed

Gets all child elements, starting from the last child.

System_CAPS_pubpropertyCondition

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.)

System_CAPS_pubpropertyConditionLocation

Location of the "Condition" attribute on this element, if any.

If there is no such attribute, returns null.(Inherited from ProjectElement.)

System_CAPS_pubpropertyContainingProject

ProjectRootElement (possibly imported) that contains this Xml.

Cannot be null.(Inherited from ProjectElement.)

System_CAPS_pubpropertyCount

Gets the number of child elements.

System_CAPS_pubpropertyFirstChild

Gets the first child element.

System_CAPS_pubpropertyLabel

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.)

System_CAPS_pubpropertyLabelLocation

Location of the "Label" attribute on this element, if any.

If there is no such attribute, returns null;(Inherited from ProjectElement.)

System_CAPS_pubpropertyLastChild

Gets the last child element.

System_CAPS_pubpropertyLocation

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.)

System_CAPS_pubpropertyNextSibling

Next sibling element.

May be null.(Inherited from ProjectElement.)

System_CAPS_pubpropertyParent

Null if this is a ProjectRootElement.

Null if this has not been attached to a parent yet.(Inherited from ProjectElement.)

System_CAPS_pubpropertyPreviousSibling

Previous sibling element.

May be null.(Inherited from ProjectElement.)

NameDescription
System_CAPS_pubmethodAppendChild(ProjectElement)

Appends the child element as the last child of this project container.

System_CAPS_pubmethodEquals(Object)

Determines whether the specified object is equal to the current object.(Inherited from Object.)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetHashCode()

Serves as the default hash function. (Inherited from Object.)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_pubmethodInsertAfterChild(ProjectElement, ProjectElement)

Inserts the child element after the reference element.

System_CAPS_pubmethodInsertBeforeChild(ProjectElement, ProjectElement)

Inserts the child element before the reference element.

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodPrependChild(ProjectElement)

Prepends the child element as the first child of this project container.

System_CAPS_pubmethodRemoveAllChildren()

Removes all the children, if any, from this project container.

System_CAPS_pubmethodRemoveChild(ProjectElement)

Removes a child element from this project container.

System_CAPS_pubmethodToString()

Returns a string that represents the current object.(Inherited from Object.)

.NET Framework
Available since 4.0

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top
Show:
© 2016 Microsoft