# RuntimeNamePropertyAttribute class

Namespace: [Eto](https://eto.picoe.ca/api/namespace/eto.md) · Assembly: [Eto](https://eto.picoe.ca/api/assembly/eto.md)

```cs
[AttributeUsage(AttributeTargets.Class)]
public sealed class RuntimeNamePropertyAttribute : Attribute
```

Attribute to specify the name property of a control for serialization

**Remarks:** Used by Eto.Serialization.Xaml, for example, to specify which property is used for the name property. E.g. when specifying the ID, it also specifies which name of the backing field.

## Constructors

- [RuntimeNamePropertyAttribute](https://eto.picoe.ca/api/type/eto.runtimenamepropertyattribute/ctor.md): Initializes a new instance of the [RuntimeNamePropertyAttribute](https://eto.picoe.ca/api/type/eto.runtimenamepropertyattribute.md) class.

## Properties

- [Name](https://eto.picoe.ca/api/type/eto.runtimenamepropertyattribute/name.md): Gets the name of the property to use as the runtime name
