Share via


CustomXMLPrefixMappings.LookupPrefix Method

Allows you to get a prefix corresponding to the specified namespace.

Namespace:  Microsoft.Office.Core
Assembly:  office (in office.dll)

Syntax

'Declaration
Function LookupPrefix ( _
    NamespaceURI As String _
) As String
'Usage
Dim instance As CustomXMLPrefixMappings
Dim NamespaceURI As String
Dim returnValue As String

returnValue = instance.LookupPrefix(NamespaceURI)
string LookupPrefix(
    string NamespaceURI
)

Parameters

Return Value

Type: System.String
String

Remarks

If no prefix is assigned to the requested namespace, the method returns an empty string (""). If there are multiple prefixes specified in the namespace manager, the method returns the first prefix that matches the supplied namespace.

See Also

Reference

CustomXMLPrefixMappings Interface

CustomXMLPrefixMappings Members

Microsoft.Office.Core Namespace