# GetVariableKind(string)

Method in [IVariableAccess](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.ivariableaccess)

## Summary

Gets the kind of variable named `name` .

```csharp
VariableKind GetVariableKind(string name);
```

## Parameters

| Name          | Description               |
| ------------- | ------------------------- |
| `string` name | The name of the variable. |

## Returns

A [VariableKind](https://docs.yarnspinner.dev/3.1/api/csharp/yarn/yarn.variablekind) enum representing the kind of the variable named `name` .
