MetadataXmlExtensions.

XAttribute(IMetadata, string) Method

Summary

Gets an XML attribute for the given metadata key. The name of the attribute will be the lower-case key name.
Assembly
Wyam.Common.dll
Namespace
Wyam.Common.Meta
Containing Type
MetadataXmlExtensions

Syntax

public static XAttribute XAttribute(this IMetadata metadata, string key)

Parameters

Name Type Description
metadata IMetadata The metadata containing the value.
key string The key containing the attribute value.

Return Value

Type Description
XAttribute The attribute if the key was found, null if not.
GitHub