# CosmosConditionNotSatisfiedException Properties

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosconditionnotsatisfiedexception/)

## Collection {#collection-5d03c84a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosconditionnotsatisfiedexception/properties/collection-5d03c84a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.Cosmos/CosmosConditionNotSatisfiedException.cs#L61)

```csharp
[Orleans.Id(2)]
public string Collection
```

Gets the collection name

## GrainId {#grainid-e0ff0170}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosconditionnotsatisfiedexception/properties/grainid-e0ff0170/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.Cosmos/CosmosConditionNotSatisfiedException.cs#L49)

```csharp
[Orleans.Id(0)]
public string GrainId
```

Gets the id of the affected grain.

## GrainType {#graintype-86e5e0bd}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleans.persistence.cosmos.cosmosconditionnotsatisfiedexception/properties/graintype-86e5e0bd/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Persistence.Cosmos/CosmosConditionNotSatisfiedException.cs#L55)

```csharp
[Orleans.Id(1)]
public string GrainType
```

Gets the grain type of the affected grain.
