GraphPathSerializationDictionary::TryGetValue Method (String^, String^)

 

Gets the value associated with the specified key.

Namespace:   Microsoft.VisualStudio.GraphModel
Assembly:  Microsoft.VisualStudio.GraphModel (in Microsoft.VisualStudio.GraphModel.dll)

public:
virtual bool TryGetValue(
	String^ key,
	[OutAttribute] String^% value
) sealed

Parameters

key
Type: System::String^

The key whose value to obtain.

value
Type: System::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.

Return Value

Type: System::Boolean

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

Exception Condition
ArgumentNullException

key is null.

Return to top
Show: