Table of Contents

Method GetDungeonById

Namespace
GuildWars2.Pve.Dungeons
Assembly
GW2SDK.dll

GetDungeonById(string, MissingMemberBehavior, CancellationToken)

Retrieves a dungeon by its ID.

public Task<(Dungeon Value, MessageContext Context)> GetDungeonById(string dungeonId, MissingMemberBehavior missingMemberBehavior = MissingMemberBehavior.Error, CancellationToken cancellationToken = default)

Parameters

dungeonId string

The dungeon ID.

missingMemberBehavior MissingMemberBehavior

The desired behavior when JSON contains unexpected members.

cancellationToken CancellationToken

A token to cancel the request.

Returns

Task<(Dungeon Value, MessageContext Context)>

A task that represents the API request.