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

Boolean

Es true si MessageProperties contiene un elemento con name especificado; en caso contrario, es false.

Se aplica a