Table of Contents

Method GetRegionsByIds

Namespace
GuildWars2.Exploration
Assembly
GW2SDK.dll

GetRegionsByIds(int, int, IEnumerable<int>, Language?, MissingMemberBehavior, CancellationToken)

Retrieves regions by their IDs.

public Task<(HashSet<Region> Value, MessageContext Context)> GetRegionsByIds(int continentId, int floorId, IEnumerable<int> regionIds, Language? language = null, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)

Parameters

continentId int

The continent ID.

floorId int

The floor ID.

regionIds IEnumerable<int>

The region IDs.

language Language

The language to use for descriptions.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(HashSet<Region> Value, MessageContext Context)>

A task that represents the API request.