Bearbeiten

MessageProperties.TryGetValue(String, Object) Method

Definition

Determines whether the MessageProperties contains a specific name, and retrieves its value.

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

Parameters

name
String

The name of the element to locate.

value
Object

The value of the found element.

Returns

true if the MessageProperties contains an element with the specified name; otherwise, false.

Applies to