XAttribute(IMetadata, string) Method
Gets an XML attribute for the given metadata key. The name of the attribute will be the lower-case key name.
Namespace
Statiq.Common
Containing Type
IMetadataXmlExtensions

Syntax

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

Parameters

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

Return Value

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