Method GetLegendById
- Namespace
- GuildWars2.Hero.Builds
- Assembly
- GW2SDK.dll
GetLegendById(string, MissingMemberBehavior, CancellationToken)
Retrieves a Revenant legend by its ID.
public Task<(Legend Value, MessageContext Context)> GetLegendById(string legendId, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
legendId
stringThe legend ID.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(Legend Value, MessageContext Context)>
A task that represents the API request.