Method TryGetValue
TryGetValue(string, out PdfItem)
Gets the value associated with the specified key.
public bool TryGetValue(string key, out PdfItem value)
Parameters
keystringThe key whose value to get.
valuePdfItemWhen this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the
valueparameter. This parameter is passed uninitialized.
Returns
- bool
true if the object that implements System.Collections.Generic.IDictionary<TKey, TValue> contains an element with the specified key; otherwise, false.
Exceptions
- ArgumentNullException
keyis null.
TryGetValue(string, out PdfItem, Type?)
public bool TryGetValue(string key, out PdfItem value, Type? valueType)
Parameters
keystringvaluePdfItemvalueTypeType
Returns
- bool
TryGetValue<T>(string, out T)
public bool TryGetValue<T>(string key, out T value) where T : PdfItem
Parameters
keystringvalueT
Returns
- bool
Type Parameters
T