CloneElement Method
Creates a duplicate of the provided element.
Namespace: Microsoft.Web.Media.TransformManager
Assembly: Microsoft.Web.Media.TransformManager.Common (in Microsoft.Web.Media.TransformManager.Common.dll)
Syntax
'Declaration
Public Shared Function CloneElement ( _
element As XElement, _
targetNamespace As XNamespace _
) As XElement
'Usage
Dim element As XElement
Dim targetNamespace As XNamespace
Dim returnValue As XElement
returnValue = Utilities.CloneElement(element, _
targetNamespace)
public static XElement CloneElement(
XElement element,
XNamespace targetNamespace
)
public:
static XElement^ CloneElement(
XElement^ element,
XNamespace^ targetNamespace
)
static member CloneElement :
element:XElement *
targetNamespace:XNamespace -> XElement
public static function CloneElement(
element : XElement,
targetNamespace : XNamespace
) : XElement
Parameters
- element
Type: System.Xml.Linq. . :: . .XElement
The element to clone.
- targetNamespace
Type: System.Xml.Linq. . :: . .XNamespace
The namespace of the element to clone.
Return Value
Type: System.Xml.Linq. . :: . .XElement
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | element is null Nothing nullptr unit a null reference (Nothing in Visual Basic) |
ArgumentNullException | targetNamespace is null Nothing nullptr unit a null reference (Nothing in Visual Basic) . |