CosDictionary.TryGetValue Method

Gets the value associated with the specified key.

Namespace:  BitMiracle.Docotic.Pdf
Assembly:  BitMiracle.Docotic.Pdf (in BitMiracle.Docotic.Pdf.dll)

Syntax

C#
public bool TryGetValue(
	string key,
	out CosObject value
)
VB
Public Function TryGetValue ( 
	key As String,
	<OutAttribute> ByRef value As CosObject
) As Boolean

Parameters

key
Type: System.String
The key of the value to get.
value
Type: BitMiracle.Docotic.Pdf.CosObject
Contains the value associated with the specified key, if the key is found; otherwise, null. This parameter is passed uninitialized.

Return Value

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

Exceptions

ExceptionCondition
ArgumentNullExceptionThe key is null.

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.

See Also