Method GetContinentById
- Namespace
- GuildWars2.Exploration
- Assembly
- GW2SDK.dll
GetContinentById(int, Language?, MissingMemberBehavior, CancellationToken)
Retrieves a continent by its ID.
public Task<(Continent Value, MessageContext Context)> GetContinentById(int continentId, Language? language = null, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
continentId
intThe continent ID.
language
LanguageThe language to use for descriptions.
missingMemberBehavior
MissingMemberBehaviorThe desired behavior when JSON contains unexpected members.
cancellationToken
CancellationTokenA token to cancel the request.
Returns
- Task<(Continent Value, MessageContext Context)>
A task that represents the API request.