Click or drag to resize

OpenXmlUnknownElementExtensionsCreateUnknownElement Method

Creates a new OpenXmlUnknownElement class by using the outer XML.

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
Syntax
public static OpenXmlUnknownElement CreateUnknownElement(
	this OpenXmlPartContainer container,
	string outerXml
)

Parameters

container  OpenXmlPartContainer
Container to create unknown element from.
outerXml  String
The outer XML of the element.

Return Value

OpenXmlUnknownElement
A new OpenXmlUnknownElement class.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type OpenXmlPartContainer. 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