Compartir a través de


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)

Syntax

'Declaración
Public Function LookupPrefix ( _
    namespaceUri As String _
) As String
'Uso
Dim instance As OpenXmlElement
Dim namespaceUri As String
Dim returnValue As String

returnValue = instance.LookupPrefix(namespaceUri)
public string LookupPrefix(
    string namespaceUri
)

Parameters

Return Value

Type: System.String
The corresponding prefix. Null if not found.

See Also

Reference

OpenXmlElement Class

OpenXmlElement Members

DocumentFormat.OpenXml Namespace