# SmlWriter.SmlAttribute class

Namespace: [GrasshopperIO.DataBase](https://developer.rhino3d.com/api/gh2/namespace/grasshopperio.database.md) · Assembly: [GrasshopperIO](https://developer.rhino3d.com/api/gh2/assembly/grasshopperio.md)

```cs
public sealed class SmlWriter.SmlAttribute : IDisposable
```

A disposable attribute object. The object must be disposed when the block ends to ensure SML compliant text.

## Constructors

- [SmlWriter.SmlAttribute](https://developer.rhino3d.com/api/gh2/type/grasshopperio.database.smlwriter.smlattribute/ctor.md)

## Methods

- [Add](https://developer.rhino3d.com/api/gh2/type/grasshopperio.database.smlwriter.smlattribute/add.md)
- [AddValue](https://developer.rhino3d.com/api/gh2/type/grasshopperio.database.smlwriter.smlattribute/addvalue.md): Write a value to this attribute.
- [Dispose](https://developer.rhino3d.com/api/gh2/type/grasshopperio.database.smlwriter.smlattribute/dispose.md): (2 overloads)
