Edit

Share via


CustomXMLPrefixMappings.LookupPrefix(String) Method

Definition

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

public:
 System::String ^ LookupPrefix(System::String ^ NamespaceURI);
public string LookupPrefix (string NamespaceURI);
abstract member LookupPrefix : string -> string
Public Function LookupPrefix (NamespaceURI As String) As String

Parameters

NamespaceURI
String

Contains the namespace URI.

Returns

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.

Applies to