CustomXMLPrefixMappings.AddNamespace(String, String) Method

Definition

Allows you to add a custom namespace/prefix mapping to use when querying an item.

public:
 void AddNamespace(System::String ^ Prefix, System::String ^ NamespaceURI);
public void AddNamespace (string Prefix, string NamespaceURI);
abstract member AddNamespace : string * string -> unit
Public Sub AddNamespace (Prefix As String, NamespaceURI As String)

Parameters

Prefix
String

Contains the prefix to add to the prefix mapping list.

NamespaceURI
String

Contains the namespace to assign to the newly added prefix.

Remarks

If the prefix already exists in the Namespace Manager, this method will overwrite the meaning of that prefix except when the prefix is one added or used by the data store (IXMLDataStore interface) internally, in which case it will return an error.

Applies to