---
title: "Class TypedEntityPropertyAttribute"
slug: "sdk--stylelabs.m.sdk.models.typed.attributes.typedentitypropertyattribute"
abstract: ""
---
# Class TypedEntityPropertyAttribute

By default the entity property name is inferred from the declared property name. If that name is not suitable, this attribute allows to specify an alternate name.

## Inheritance

object

TypedEntityPropertyAttribute

## Namespace: StylelabsStylelabs.MSdkStylelabs.M.Sdk.ModelsTypedAttributes

## Assembly: Stylelabs.M.Sdk.dll

## Syntax

```csharp
public class TypedEntityPropertyAttribute : Attribute
```

## Constructors

### TypedEntityPropertyAttribute(string)

Initializes a new instance of the [TypedEntityPropertyAttribute](https://doc.sitecore.com/ch/en/developers/api-reference/sdk--stylelabs.m.sdk.models.typed.attributes.typedentitypropertyattribute.html) class.

#### Declaration

```csharp
public TypedEntityPropertyAttribute(string propertyName)
```

#### Parameters

| Type | Name | Description |
| --- | --- | --- |
| string | propertyName | The property name. |

## Properties

### PropertyName

Gets the property name.

#### Declaration

```csharp
public string PropertyName { get; }
```

#### Property Value

| Type | Description |
| --- | --- |
| string |  |
