Table of Contents

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 string

The legend ID.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(Legend Value, MessageContext Context)>

A task that represents the API request.