# HierarchicalKey.IsParentOf(HierarchicalKey)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.hierarchicalkey/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.durable/orleans.durable.messaging.hierarchicalkey/methods/)

[Source](https://github.com/dotnet/orleans/blob/6a0e937f544c35ffcf11b37e4c2b7de5a1580a03/src/Orleans.Durable/Messaging/HierarchicalKey.cs#L149)

```csharp
public bool IsParentOf(HierarchicalKey other)
```

Tests whether this key is the other's immediate parent.

### Parameters

- `other` (`HierarchicalKey`): The potential child.

### Returns

Whether the other key extends this key by exactly one segment.
