Share via


AdditionalPropertiesDictionary.TryGetValue Method

Definition

Overloads

TryGetValue(String, Object)
TryGetValue<T>(String, T)

TryGetValue(String, Object)

public:
 virtual bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] System::Object ^ % value);
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
value
Object

Returns

Applies to

TryGetValue<T>(String, T)

public:
generic <typename T>
 bool TryGetValue(System::String ^ key, [Runtime::InteropServices::Out] T % value);
public bool TryGetValue<T> (string key, out T? value);
member this.TryGetValue : string * 'T -> bool
Public Function TryGetValue(Of T) (key As String, ByRef value As T) As Boolean

Type Parameters

T

Parameters

key
String
value
T

Returns

Applies to