Export (0) Print
Expand All

OpenXmlElement.LookupPrefix method

Finds the corresponding prefix for a namespace uri in the current element scope.

Namespace:  DocumentFormat.OpenXml
Assembly:  DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)

public string LookupPrefix(
	string namespaceUri
)

Parameters

namespaceUri
Type: System.String

The namespace uri.

Return value

Type: System.String
The corresponding prefix. Returns null (Nothing in Visual Basic) if no prefix is found.
Show:
© 2015 Microsoft