MessageQueryTable<TItem>.TryGetValue(MessageQuery, TItem) MessageQueryTable<TItem>.TryGetValue(MessageQuery, TItem) MessageQueryTable<TItem>.TryGetValue(MessageQuery, TItem) MessageQueryTable<TItem>.TryGetValue(MessageQuery, TItem) Method

Definition

Checks whether a matching query is stored in the table.

public:
 virtual bool TryGetValue(System::ServiceModel::Dispatcher::MessageQuery ^ key, [Runtime::InteropServices::Out] TItem % value);
public bool TryGetValue (System.ServiceModel.Dispatcher.MessageQuery key, out TItem value);
abstract member TryGetValue : System.ServiceModel.Dispatcher.MessageQuery *  -> bool
override this.TryGetValue : System.ServiceModel.Dispatcher.MessageQuery *  -> bool
Public Function TryGetValue (key As MessageQuery, ByRef value As TItem) As Boolean

Parameters

key
MessageQuery MessageQuery MessageQuery MessageQuery

The query that is used as a key to retrieve the data.

value
TItem TItem TItem TItem

The value associated with the query.

Returns

Boolean true if there is a matching query in the table (the value associated with the query is found in the outvalue parameter); otherwise, false.

Applies to