Table of Contents

Method TryGetValue

Namespace
Anvil.API
Assembly
NWN.Anvil.dll

TryGetValue(string, out GffResourceField?)

If this field is a GffResourceFieldStruct, gets the value associated with the specified key.

public virtual bool TryGetValue(string key, out GffResourceField? value)

Parameters

key string

The key of the value to get./

value GffResourceField

If the method runs successfully (returns true), this output parameter will contain the associated value.

Returns

bool

True if the field is a GffResourceFieldStruct and the key exists. Otherwise, false.