Condividi tramite


GraphPathSerializationDictionary.TryGetValue(String, String) Method

Definition

Gets the value associated with the specified key.

public:
 virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::String ^ % value);
public bool TryGetValue (string key, out string value);
abstract member TryGetValue : string * string -> bool
override this.TryGetValue : string * string -> bool
Public Function TryGetValue (key As String, ByRef value As String) As Boolean

Parameters

key
String

The key whose value to get.

value
String

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

True if the object that implements System.Collections.Generic.IDictionary contains an element with the specified key; otherwise, false.

Exceptions

key is null.

Applies to