# LegacyGrainId Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/)

## Category {#category-8958f34b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/category-8958f34b/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L24)

```csharp
public Category Category
```

## IdentityString {#identitystring-ad3a1297}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/identitystring-ad3a1297/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L125)

```csharp
public string IdentityString
```

## IsClient {#isclient-4b67b3a4}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/isclient-4b67b3a4/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L30)

```csharp
public bool IsClient
```

## IsGrain {#isgrain-85dca512}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/isgrain-85dca512/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L28)

```csharp
public bool IsGrain
```

## IsLongKey {#islongkey-886dfe24}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/islongkey-886dfe24/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L130)

```csharp
public bool IsLongKey
```

## IsSystemTarget {#issystemtarget-058f055b}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/issystemtarget-058f055b/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L26)

```csharp
public bool IsSystemTarget
```

## PrimaryKey {#primarykey-15efe115}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/primarykey-15efe115/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L110)

```csharp
public Guid PrimaryKey
```

## PrimaryKeyLong {#primarykeylong-cd1c1a42}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/primarykeylong-cd1c1a42/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L115)

```csharp
public long PrimaryKeyLong
```

## PrimaryKeyString {#primarykeystring-c70d00dc}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/primarykeystring-c70d00dc/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L120)

```csharp
public string PrimaryKeyString
```

## TypeCode {#typecode-29f4bea9}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.core.abstractions/orleans.runtime.legacygrainid/properties/typecode-29f4bea9/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Core.Abstractions/IDs/Legacy/LegacyGrainId.cs#L159)

```csharp
public int TypeCode
```
