Click or drag to resize

OpenXmlElementAddNamespaceDeclaration Method

Adds a namespace declaration to the current node.

Namespace: DocumentFormat.OpenXml
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.11.3+Branch.master.Sha.3fcdea311b5a001803ff150de35c25fd4cd62f93.3fcdea311b5a001803ff150de35c25fd4cd62f93
Syntax
public void AddNamespaceDeclaration(
	string prefix,
	string uri
)

Parameters

prefix  String
The prefix.
uri  String
The uri.
Exceptions
ExceptionCondition
InvalidOperationExceptionThrown if the prefix is already used in the current node.
See Also