MessageProperties.TryGetValue(String, Object) Método

Definición

Determina si MessageProperties contiene un nombre específico y recupera su valor.

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

Parámetros

name
String

Nombre del elemento que se va a buscar.

value
Object

Valor del elemento encontrado.

Devoluciones

true MessageProperties si contiene un elemento con el objeto especificadoname; de lo contrario, false.

Se aplica a