Table of contents
TOC
Collapse the table of content
Expand the table of content

CustomXMLPrefixMappings.LookupNamespace Method (Office)

office 365 dev account|Last Updated: 6/12/2017
|
1 Contributor

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

Syntax

expression. LookupNamespace( Prefix )

expression An expression that returns a CustomXMLPrefixMappings object.

Parameters

NameRequired/OptionalData TypeDescription
PrefixRequiredStringContains a prefix in the prefix mapping list.

Return Value

String

Remarks

If no namespace is assigned to the requested prefix, the method returns an empty string ("").

Example

The following example retrieves the namespace corresponding to the prefix argument.

Dim objCustomPrefixMappings As  CustomPrefixMappings 
    Dim strNamespace As String 

    ' Gets the namespace corresponding to the prefix. 
   strNamespace = objCustomPrefixMappings.LookupNamespace("xs")

See also

Concepts

CustomXMLPrefixMappings Object

Other resources

CustomXMLPrefixMappings Object Members

© 2018 Microsoft