# UiNameAttribute class

Namespace: [Grasshopper2.UI](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.ui.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
[AttributeUsage(AttributeTargets.All, AllowMultiple = false)]
public sealed class UiNameAttribute : Attribute
```

Assign this attribute to types or values if their name needs to be something other than the type of method name.

## Constructors

- [UiNameAttribute](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uinameattribute/ctor.md): Create a new attribute.

## Properties

- [Name](https://developer.rhino3d.com/api/gh2/type/grasshopper2.ui.uinameattribute/name.md): Gets the user-interface name.
