ProjectElementLink.GetAttributeValue Method

Definition

Overloads

GetAttributeValue(ProjectElement, String, Boolean)
GetAttributeValue(String, Boolean)

Required to implement Attribute access for remote element.

Source:
ProjectElementLink.cs
C#
public static string GetAttributeValue(Microsoft.Build.Construction.ProjectElement xml, string attributeName, bool nullIfNotExists);

Parameters

attributeName
String
nullIfNotExists
Boolean

Returns

Applies to

MSBuild 17 and other versions
Product Versions
MSBuild 16, 17
MSBuild (.NET Core) 16, 17
Source:
ProjectElementLink.cs

Required to implement Attribute access for remote element.

C#
public abstract string GetAttributeValue(string attributeName, bool nullIfNotExists);

Parameters

attributeName
String
nullIfNotExists
Boolean

Returns

Applies to

MSBuild 17 and other versions
Product Versions
MSBuild 16, 17
MSBuild (.NET Core) 16, 17