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

.NET Framework (current version)
 

Checks whether a matching query is stored in the table.

Namespace:   System.ServiceModel.Dispatcher
Assembly:  System.ServiceModel (in System.ServiceModel.dll)

public bool TryGetValue(
	MessageQuery key,
	out TItem value
)

Parameters

key
Type: System.ServiceModel.Dispatcher.MessageQuery

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

value
Type: TItem

The value associated with the query.

Return Value

Type: System.Boolean

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.

.NET Framework
Available since 4.0
Return to top
Show: