> For the complete documentation index, see [llms.txt](https://docs.yarnspinner.dev/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yarnspinner.dev/3.1/api/csharp/yarn.markup/yarn.markup.markupattribute/yarn.markup.markupattribute.trygetproperty-1.md).

# TryGetProperty(string,MarkupValue)

Method in [MarkupAttribute](/3.1/api/csharp/yarn.markup/yarn.markup.markupattribute.md)

## Summary

Gets a property named `name` from this attribute, if present.

```csharp
public readonly bool TryGetProperty(string name, out MarkupValue result)
```

## Parameters

| Name                                                                                     | Description                                               |
| ---------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| `string` name                                                                            | The name of the property.                                 |
| [Yarn.Markup.MarkupValue](/3.1/api/csharp/yarn.markup/yarn.markup.markupvalue.md) result | On return, the property's value if found, or zero if not. |

## Returns

`true` if a property named `name` was found; `false` otherwise.
