Topic Transformation ExtensionsAttribute Of Type 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: 2026.1.20.0
The first attribute element for the given type if found or null if not
Assembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2026.1.20.0
C#
public static XElement AttributeOfType(
this XElement element,
string attributeTypeName
)VB
<ExtensionAttribute>
Public Shared Function AttributeOfType (
element As XElement,
attributeTypeName As String
) As XElementC++
public:
[ExtensionAttribute]
static XElement^ AttributeOfType(
XElement^ element,
String^ attributeTypeName
)F#
[<ExtensionAttribute>]
static member AttributeOfType :
element : XElement *
attributeTypeName : string -> XElement 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
XElementThe first attribute element for the given type if found or null if not