---
title: "XmpNamespace.AddNamespace Method "
canonical: https://www.graphicsmill.com/docs/gm/M_Aurigma_GraphicsMill_Codecs_XmpNamespace_AddNamespace_2_f3570541.htm
product: "Graphics Mill"
---

# XmpNamespace.AddNamespace Method 
 
Adds a namespace to the collection.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```csharp
public static XmpNamespace AddNamespace(string uri,string prefix
)
```
 
### Parameters
 
 - uri
     - Type: System.String
The Uri of the namespace to add.

 - prefix
     - Type: System.String
The prefix of the namespace to add.
 
### Return Value
A new [XmpNamespace](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_XmpNamespace.htm.md) added to the collection.
   
## See Also

### Reference

- [XmpNamespace Class](https://www.graphicsmill.com/docs/gm/T_Aurigma_GraphicsMill_Codecs_XmpNamespace.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm/N_Aurigma_GraphicsMill_Codecs.htm.md)
