# Codec_NotAllowedAttributionGrain.Serialize(Writer&lt;TBufferWriter&gt;, NotAllowedAttributionGrain)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.transactionattributiongrainextensions.codec-notallowedattributiongrain/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.transactions.testkit.base/orleanscodegen.orleans.transactions.testkit.transactionattributiongrainextensions.codec-notallowedattributiongrain/methods/)

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

Serializes the provided value.

### Parameters

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