# AdoNetClusteringTable.InitializeMembershipTableAsync(bool, CancellationToken)

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.clustering.adonet/orleans.runtime.membershipservice.adonetclusteringtable/) | [Methods](/orleans/docs/api/csharp/microsoft.orleans.clustering.adonet/orleans.runtime.membershipservice.adonetclusteringtable/methods/)

[Source](https://github.com/dotnet/orleans/blob/8bc9fd244427351ad24ccc039a9e7642a42c1cc4/src/AdoNet/Orleans.Clustering.AdoNet/Messaging/AdoNetClusteringTable.cs#L48-L70)

```csharp
public Task InitializeMembershipTableAsync(bool tryInitTableVersion, CancellationToken cancellationToken = default(CancellationToken))
```

Initializes the membership table, will be called before all other methods

### Parameters

- `tryInitTableVersion` (`bool`): Whether to initialize the underlying table version.
- `cancellationToken` (`CancellationToken`): A token which cancels the operation.

### Returns

A task representing the initialization operation.
