Share via


MessageProperties.TryGetValue(String, Object) Metodo

Definizione

Consente di stabilire se la classe MessageProperties contiene un nome specifico e di recuperarne il valore.

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

Parametri

name
String

Nome dell'elemento da individuare.

value
Object

Valore dell'elemento individuato.

Restituisce

true se la classe MessageProperties contiene un elemento con l'oggetto name specificato; in caso contrario, false.

Si applica a