ModelItemDictionary.TryGetValue Method (ModelItem, ModelItem%)
When overridden in a derived class, retrieves the value for the specified key.
Namespace: Microsoft.Windows.Design.Model
Assembly: Microsoft.Windows.Design.Interaction (in Microsoft.Windows.Design.Interaction.dll)
Syntax
'Declaration
Public MustOverride Function TryGetValue ( _
key As ModelItem, _
<OutAttribute> ByRef value As ModelItem _
) As Boolean
public abstract bool TryGetValue(
ModelItem key,
out ModelItem value
)
public:
virtual bool TryGetValue(
ModelItem^ key,
[OutAttribute] ModelItem^% value
) abstract
abstract TryGetValue :
key:ModelItem *
value:ModelItem byref -> bool
public abstract function TryGetValue(
key : ModelItem,
value : ModelItem
) : boolean
Parameters
- key
Type: Microsoft.Windows.Design.Model.ModelItem
A ModelItem representing the key to be tested.
- value
Type: Microsoft.Windows.Design.Model.ModelItem%
If a value is found for the key, this out parameter contains the ModelItem value that is retrieved.
Return Value
Type: System.Boolean
true if a value associated with key is found; otherwise, false.
Implements
IDictionary<TKey, TValue>.TryGetValue(TKey, TValue%)
Remarks
If a value is found to be associated with the specified key, it is returned in the value out parameter.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.
See Also
Reference
Microsoft.Windows.Design.Model Namespace