Method GetSectorById
- Namespace
- GuildWars2.Exploration
- Assembly
- GW2SDK.dll
GetSectorById(int, int, int, int, int, Language?, MissingMemberBehavior, CancellationToken)
Retrieves a sector by its ID.
public Task<(Sector Value, MessageContext Context)> GetSectorById(int continentId, int floorId, int regionId, int mapId, int sectorId, Language? language = null, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)
Parameters
continentId
intThe continent ID.
floorId
intThe floor ID.
regionId
intThe region ID.
mapId
intThe map ID.
sectorId
intThe sector 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<(Sector Value, MessageContext Context)>
A task that represents the API request.