This document is archived and information here might be outdated.  Recommended version.


IXMLNamespaces.AddNamespace Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > System > ESRI.ArcGIS.esriSystem > Interfaces > IX > IXMLNamespaces Interface > IXMLNamespaces.AddNamespace Method
ArcGIS Developer Help

IXMLNamespaces.AddNamespace Method

Adds a namespace to the element.

[Visual Basic .NET]
Public Sub AddNamespace ( _
    ByVal Prefix As String, _
    ByVal uri As String _
)
[C#]
public void AddNamespace (
    string Prefix,
    string uri
);
[C++]
HRESULT AddNamespace(
  BSTR Prefix,
  BSTR uri
);
[C++]
Parameters
Prefix [in]

Prefix is a parameter of type BSTR uri [in]
uri is a parameter of type BSTR

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

See Also

IXMLNamespaces Interface