Table of Contents

Method TryGetValue

Namespace
BitMiracle.Docotic.Pdf
Assembly
BitMiracle.Docotic.Pdf.dll

TryGetValue(string, out CosObject?)

Gets the value associated with the specified key.

public bool TryGetValue(string key, out CosObject? value)

Parameters

key string

The key of the value to get.

value CosObject

Contains the value associated with the specified key, if the key is found; otherwise, null. This parameter is passed uninitialized.

Returns

bool

true if the dictionary contains an entry with the specified key; otherwise, false.

Remarks

The key must not be null and should not start with a leading slash. Characters in the key should not be escaped. Empty string (string.Empty) is a valid key.

Exceptions

ArgumentNullException

The key is null.