CustomXMLPrefixMappings.AddNamespace Method
Allows you to add a custom namespace/prefix mapping to use when querying an item.
Namespace: Microsoft.Office.Core
Assembly: office (in office.dll)
Syntax
'Declaration
Sub AddNamespace ( _
Prefix As String, _
NamespaceURI As String _
)
'Usage
Dim instance As CustomXMLPrefixMappings
Dim Prefix As String
Dim NamespaceURI As String
instance.AddNamespace(Prefix, NamespaceURI)
void AddNamespace(
string Prefix,
string NamespaceURI
)
Parameters
Prefix
Type: System.StringContains the prefix to add to the prefix mapping list.
NamespaceURI
Type: System.StringContains 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.
See Also
Reference
CustomXMLPrefixMappings Interface