 | OpenXmlElementLookupPrefix Method |
Finds the corresponding prefix for a namespace uri in the current element scope.
Namespace: DocumentFormat.OpenXmlAssembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll) Version: 2.20.0+Branch.release-v2.20.0.Sha.a873d3fbff9bffe179fea62486da950adf5be65d.a873d3fbff9bffe179fea62486da950adf5be65d
Syntaxpublic string? LookupPrefix(
string namespaceUri
)
Public Function LookupPrefix (
namespaceUri As String
) As String
public:
String^ LookupPrefix(
String^ namespaceUri
)
member LookupPrefix :
namespaceUri : string -> string
Parameters
- namespaceUri String
- The namespace uri.
Return Value
StringThe corresponding prefix. Returns null (Nothing in Visual Basic) if no prefix is found.
See Also