# Codec_CosmosConditionNotSatisfiedException.Serialize(Writer&lt;TBufferWriter&gt;, CosmosConditionNotSatisfiedException)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleanscodegen.orleans.persistence.cosmos.codec-cosmosconditionnotsatisfiedexception/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.persistence.cosmos/orleanscodegen.orleans.persistence.cosmos.codec-cosmosconditionnotsatisfiedexception/methods/)

```csharp
public void Serialize<TBufferWriter>(ref Writer<TBufferWriter> writer, CosmosConditionNotSatisfiedException instance)
```

Serializes the provided value.

### Parameters

- `writer` (`Writer<TBufferWriter>`): The writer.
- `instance` (`CosmosConditionNotSatisfiedException`): The value.
