TopicTransformationExtensionsAttributeOfType Method

This is used to retrieve the first attribute of the given type from an API element's attributes node.

Definition

Namespace: Sandcastle.Core.PresentationStyle.Transformation
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2024.9.12.0
public static XElement AttributeOfType(
	this XElement element,
	string attributeTypeName
)

Parameters

element  XElement
The element containing the attribute information
attributeTypeName  String
The fully qualified type name of the attribute. The "T:" prefix will be added if not specified.

Return Value

XElement
The first attribute element for the given type if found or null if not

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type XElement. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also