Share via


MessageProperties.TryGetValue(String, Object) Método

Definição

Determina se o MessageProperties contém um nome específico e recupera seu 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

O nome do elemento a ser localizado.

value
Object

O valor do elemento encontrado.

Retornos

true se o MessageProperties contiver um elemento com o name especificado; caso contrário, false.

Aplica-se a