This content is part of a third party extension that is not supported by the Cake project.
For more information about this extension see Cake.Incubator.
Summary
gets the first matching element value, if a config is passed, it will only match an element with the specified config and platform condition.
the platform defaults to AnyCPU
- Assembly
- Cake
.Incubator .dll - Namespace
- Cake
.Incubator .XDocumentExtensions - Containing Type
- XDocumentExtensions
Syntax
public static string GetFirstElementValue(this XDocument document, XName elementName, string config = null, string platform = "AnyCPU")
Parameters
| Name | Type | Description |
|---|---|---|
| document | XDocument | the document |
| elementName | XName | the element name to match |
| config | string | the configuration to match |
| platform | string | the platform to match, default is AnyCPU |
Return Value
| Type | Description |
|---|---|
| string | the matching element value if found |
