|
XmlExtensionsWhereAttribute Method
|
Finds all attributes in an enumeration of XElement items that match the specified attributeName.
Namespace: GSF.XmlAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.275-beta+5a507085c1b79f1427cd1812b9c3c9c583c21079
Syntaxpublic static IEnumerable<Tuple<XElement, string>> WhereAttribute(
this IEnumerable<XElement> source,
string attributeName
)
<ExtensionAttribute>
Public Shared Function WhereAttribute (
source As IEnumerable(Of XElement),
attributeName As String
) As IEnumerable(Of Tuple(Of XElement, String))
public:
[ExtensionAttribute]
static IEnumerable<Tuple<XElement^, String^>^>^ WhereAttribute(
IEnumerable<XElement^>^ source,
String^ attributeName
)
[<ExtensionAttribute>]
static member WhereAttribute :
source : IEnumerable<XElement> *
attributeName : string -> IEnumerable<Tuple<XElement, string>> GSF.Xml.XmlExtensions.WhereAttribute = function(source, attributeName);
View SourceParameters
- source IEnumerableXElement
- Set of XElement values to search.
- attributeName String
- Attribute name to match.
Return Value
IEnumerableTupleXElement,
StringMatching sets of
XElement items and associated attribute values.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
IEnumerableXElement. 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).
Remarks
See Also