|
XmlExtensionsTransformAll(XDocument, XName, FuncXElement, Int32, Object) Method
|
Transforms all elements in the given document matching the given
name using the given selector
function to perform the transformation.
Namespace: GSF.XmlAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.254-beta+b1c32a8191971a5ec09744a3eb270cb5508e892c
Syntaxpublic static void TransformAll(
this XDocument document,
XName name,
Func<XElement, int, Object> selector
)
<ExtensionAttribute>
Public Shared Sub TransformAll (
document As XDocument,
name As XName,
selector As Func(Of XElement, Integer, Object)
)
public:
[ExtensionAttribute]
static void TransformAll(
XDocument^ document,
XName^ name,
Func<XElement^, int, Object^>^ selector
)
[<ExtensionAttribute>]
static member TransformAll :
document : XDocument *
name : XName *
selector : Func<XElement, int, Object> -> unit
GSF.Xml.XmlExtensions.TransformAll = function(document, name, selector);
View SourceParameters
- document XDocument
- The document to be modified.
- name XName
- The name of the elements to be transformed.
- selector FuncXElement, Int32, Object
- The function that defines the transformation.
Usage Note
In Visual Basic and C#, you can call this method as an instance method on any object of type
XDocument. 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