Table of Contents

TryGetValue Method

Definition

Namespace
Savvyio
Assemblies
Savvyio.Core.dll
Source
src/Savvyio.Core/MetadataDictionary.cs

TryGetValue(string, out object)

Gets the value associated with the specified key.

public bool TryGetValue(string key, out object value)

Parameters

key string

The key whose value to get.

value object

When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Returns

bool

true if the object that implements MetadataDictionary contains an element with the specified key; otherwise, false.