ProjectElementLink.GetAttributeValue Method
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.
GetAttributeValue(ProjectElement, String, Boolean) | |
GetAttributeValue(String, Boolean) |
Required to implement Attribute access for remote element. |
- Source:
- ProjectElementLink.cs
public:
static System::String ^ GetAttributeValue(Microsoft::Build::Construction::ProjectElement ^ xml, System::String ^ attributeName, bool nullIfNotExists);
C#
public static string GetAttributeValue(Microsoft.Build.Construction.ProjectElement xml, string attributeName, bool nullIfNotExists);
static member GetAttributeValue : Microsoft.Build.Construction.ProjectElement * string * bool -> string
Public Shared Function GetAttributeValue (xml As ProjectElement, attributeName As String, nullIfNotExists As Boolean) As String
Parameters
- xml
- ProjectElement
- 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.
public:
abstract System::String ^ GetAttributeValue(System::String ^ attributeName, bool nullIfNotExists);
C#
public abstract string GetAttributeValue(string attributeName, bool nullIfNotExists);
abstract member GetAttributeValue : string * bool -> string
Public MustOverride Function GetAttributeValue (attributeName As String, nullIfNotExists As Boolean) As String
Parameters
- attributeName
- String
- nullIfNotExists
- Boolean
Returns
Applies to
MSBuild 17 and other versions
Product | Versions |
---|---|
MSBuild | 16, 17 |
MSBuild (.NET Core) | 16, 17 |