# ParticipantRoleExtensions Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantroleextensions/)

## IsManager(ParticipantId) {#ismanager-this-orleans-transactions-participantid-9617c9f8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantroleextensions/methods/ismanager-this-orleans-transactions-participantid-9617c9f8/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/ParticipantId.cs#L70)

```csharp
public static bool IsManager(this ParticipantId participant)
```

### Parameters

- `participant` (`ParticipantId`)

## IsPriorityManager(ParticipantId) {#isprioritymanager-this-orleans-transactions-participantid-5623d924}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantroleextensions/methods/isprioritymanager-this-orleans-transactions-participantid-5623d924/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/ParticipantId.cs#L75)

```csharp
public static bool IsPriorityManager(this ParticipantId participant)
```

### Parameters

- `participant` (`ParticipantId`)

## IsResource(ParticipantId) {#isresource-this-orleans-transactions-participantid-b0a33745}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantroleextensions/methods/isresource-this-orleans-transactions-participantid-b0a33745/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/ParticipantId.cs#L65)

```csharp
public static bool IsResource(this ParticipantId participant)
```

### Parameters

- `participant` (`ParticipantId`)

## SelectManagers(IEnumerable&lt;KeyValuePair&lt;ParticipantId, AccessCounter&gt;&gt;) {#selectmanagers-this-system-collections-generic-ienumerable-system-collections-ge-82bf9f2a}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantroleextensions/methods/selectmanagers-this-system-collections-generic-ienumerable-system-collections-ge-82bf9f2a/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/ParticipantId.cs#L85)

```csharp
public static IEnumerable<KeyValuePair<ParticipantId, AccessCounter>> SelectManagers(this IEnumerable<KeyValuePair<ParticipantId, AccessCounter>> participants)
```

### Parameters

- `participants` (`IEnumerable<KeyValuePair<ParticipantId, AccessCounter>>`)

## SelectPriorityManagers(IEnumerable&lt;ParticipantId&gt;) {#selectprioritymanagers-this-system-collections-generic-ienumerable-orleans-trans-39f5246e}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantroleextensions/methods/selectprioritymanagers-this-system-collections-generic-ienumerable-orleans-trans-39f5246e/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/ParticipantId.cs#L90)

```csharp
public static IEnumerable<ParticipantId> SelectPriorityManagers(this IEnumerable<ParticipantId> participants)
```

### Parameters

- `participants` (`IEnumerable<ParticipantId>`)

## SelectResources(IEnumerable&lt;KeyValuePair&lt;ParticipantId, AccessCounter&gt;&gt;) {#selectresources-this-system-collections-generic-ienumerable-system-collections-g-5e62fa7d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantroleextensions/methods/selectresources-this-system-collections-generic-ienumerable-system-collections-g-5e62fa7d/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/ParticipantId.cs#L80)

```csharp
public static IEnumerable<KeyValuePair<ParticipantId, AccessCounter>> SelectResources(this IEnumerable<KeyValuePair<ParticipantId, AccessCounter>> participants)
```

### Parameters

- `participants` (`IEnumerable<KeyValuePair<ParticipantId, AccessCounter>>`)

## SupportsRoles(ParticipantId, Role) {#supportsroles-this-orleans-transactions-participantid-orleans-transactions-parti-6a97bd58}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.transactions/orleans.transactions.participantroleextensions/methods/supportsroles-this-orleans-transactions-participantid-orleans-transactions-parti-6a97bd58/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Orleans.Transactions/DistributedTM/ParticipantId.cs#L60)

```csharp
public static bool SupportsRoles(this ParticipantId participant, Role role)
```

### Parameters

- `participant` (`ParticipantId`)
- `role` (`Role`)
