---
title: "XmpNamespace..::.AddNamespace Method "
canonical: https://www.graphicsmill.com/docs/gm5/M_Aurigma_GraphicsMill_Codecs_XmpNamespace_AddNamespace_2_f3570541.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# XmpNamespace.AddNamespace Method 
 
Adds a namespace to the collection of namespaces.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Shared Function AddNamespace ( _uri As String, _prefix As String _
) As XmpNamespace
```
 
```csharp
public static XmpNamespace AddNamespace(string uri,string prefix
)
```
 
### Parameters
 
 - uri
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
Namespace URI.

 - prefix
     - Type: [System.String](http://msdn2.microsoft.com/en-us/s1wwdcbf)
Namespace prefix.
 
### Return Value
Namespace added to the collection.
   
## See Also

### Reference

- [XmpNamespace Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_XmpNamespace.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
