ActivityTagsCollection.TryGetValue(String, Object) Metodo

Definizione

Ottiene il valore associato alla chiave specificata.

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

Parametri

key
String

La chiave del tag.

value
Object

Il valore del tag.

Restituisce

Valore associato alla chiave specificata quando restituito dal metodo, se la chiave viene trovata; in caso contrario, il valore predefinito per il tipo di parametro relativo al valore. Questo parametro viene passato non inizializzato.

Si applica a