DialogStateManager.TryGetValue Method

Definition

Overloads

TryGetValue(String, Object)

Gets the value associated with the specified key.

TryGetValue<T>(String, T)

Get the value from memory using path expression (NOTE: This always returns clone of value).

TryGetValue(String, Object)

Gets the value associated with the specified key.

public bool TryGetValue (string key, out object value);
abstract member TryGetValue : string * obj -> bool
override this.TryGetValue : string * obj -> bool
Public Function TryGetValue (key As String, ByRef value As Object) As Boolean

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

true if the dialog state manager contains an element with the specified key; otherwise, false.

Applies to

TryGetValue<T>(String, T)

Get the value from memory using path expression (NOTE: This always returns clone of value).

public bool TryGetValue<T> (string path, out T value);
member this.TryGetValue : string * 'T -> bool
Public Function TryGetValue(Of T) (path As String, ByRef value As T) As Boolean

Type Parameters

T

the value type to return.

Parameters

path
String

path expression to use.

value
T

Value out parameter.

Returns

True if found, false if not.

Remarks

This always returns a CLONE of the memory, any modifications to the result of this will not be affect memory.

Applies to