TopicTransformationExtensionsAttributeOfType Method
This is used to retrieve the first attribute of the given type from an API element's
attributes node.
Namespace: Sandcastle.Core.PresentationStyle.TransformationAssembly: Sandcastle.Core (in Sandcastle.Core.dll) Version: 2024.12.21.0
public static XElement AttributeOfType(
this XElement element,
string attributeTypeName
)
<ExtensionAttribute>
Public Shared Function AttributeOfType (
element As XElement,
attributeTypeName As String
) As XElement
public:
[ExtensionAttribute]
static XElement^ AttributeOfType(
XElement^ element,
String^ attributeTypeName
)
[<ExtensionAttribute>]
static member AttributeOfType :
element : XElement *
attributeTypeName : string -> XElement
- 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.
XElementThe first attribute element for the given type if found or null if notIn 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).