Table of Contents

Method GetLegendaryItemById

Namespace
GuildWars2.Hero.Equipment.Templates
Assembly
GW2SDK.dll

GetLegendaryItemById(int, MissingMemberBehavior, CancellationToken)

Retrieves a legendary item by its ID.

public Task<(LegendaryItem Value, MessageContext Context)> GetLegendaryItemById(int legendaryItemId, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)

Parameters

legendaryItemId int

The item ID.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(LegendaryItem Value, MessageContext Context)>

A task that represents the API request.