Summary
Gets an XML attribute for the given metadata key.
- Assembly
- Wyam
.Common .dll - Namespace
- Wyam
.Common .Meta - Containing Type
- Metadata
Xml Extensions
Syntax
public static XAttribute XAttribute(this IMetadata metadata, string name, string key)
Parameters
Name | Type | Description |
---|---|---|
metadata | IMetadata | The metadata containing the value. |
name | string | The name of the XML attribute. |
key | string | The key containing the attribute value. |
Return Value
Type | Description |
---|---|
XAttribute | The attribute if the key was found, null if not. |