Property | Type | Description | |
---|---|---|---|
HasItemBeenDeleted | bool | ||
ProjectElement | System | ||
ProjectElement | System |
Method | Description | |
---|---|---|
Equals ( object obj ) : bool | ||
GetEvaluatedMetadata ( string attributeName ) : string | ||
GetFullPathForElement ( ) : string |
Return an absolute path for the passed in element. If the element is already an absolute path, it is returned. Otherwise, it is unrelativized using the project directory as the base. Note that any ".." in the paths will be resolved. For non-file system based project, it may make sense to override.
|
|
GetHashCode ( ) : int | ||
GetMetadata ( string attributeName ) : string |
Get the value of an attribute on a project element
|
|
GetMetadataAndThrow ( string attributeName, |
Gets the attribute and throws the handed exception if the exception if the attribute is empty or null. The method will throw an Exception and neglect the passed in exception if the attribute is deleted |
|
RefreshProperties ( ) : void |
Reevaluate all properties for the current item This should be call if you believe the property for this item may have changed since it was created/refreshed, or global properties this items depends on have changed. Be aware that there is a perf cost in calling this function.
|
|
RemoveFromProjectFile ( ) : void |
Calling this method remove this item from the project file. Once the item is delete, you should not longer be using it. Note that the item should be removed from the hierarchy prior to this call.
|
|
Rename ( string newPath ) : void | ||
SetMetadata ( string attributeName, string attributeValue ) : void |
Set an attribute on the project element
|
|
operator ( ) : bool |
Method | Description | |
---|---|---|
HasItemBeenDeleted ( ) : bool |
Has the item been deleted
|
|
ProjectElement ( |
Constructor to Wrap an existing MSBuild.ProjectItem Only have internal constructors as the only one who should be creating such object is the project itself (see Project.CreateFileNode()).
|
|
ProjectElement ( |
Constructor to create a new MSBuild.ProjectItem and add it to the project Only have internal constructors as the only one who should be creating such object is the project itself (see Project.CreateFileNode()).
|
public GetEvaluatedMetadata ( string attributeName ) : string | ||
attributeName | string | |
return | string |
public GetMetadata ( string attributeName ) : string | ||
attributeName | string | Name of the attribute to get the value for |
return | string |
public GetMetadataAndThrow ( string attributeName, |
||
attributeName | string | The name of the attribute to get. |
exception | The exception to be thrown if not found or empty. | |
return | string |
public SetMetadata ( string attributeName, string attributeValue ) : void | ||
attributeName | string | Name of the attribute to set |
attributeValue | string | Value to give to the attribute. Use |
return | void |