XAttribute(IMetadata, string, string) Method
Gets an XML attribute for the given metadata key.
Namespace
Statiq.Common
Containing Type
IMetadataXmlExtensions

Syntax

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

Parameters

Name Type Description
metadata IMetadata The metadata instance.
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.