ItemFieldDictionary.TryGetValue Method

Gets the value associated with the specified key.

Namespace:  Microsoft.Synchronization.SimpleProviders
Assembly:  Microsoft.Synchronization.SimpleProviders (in Microsoft.Synchronization.SimpleProviders.dll)

Syntax

'Declaration
Public Function TryGetValue ( _
    key As UInteger, _
    <OutAttribute> ByRef value As ItemField _
) As Boolean
'Usage
Dim instance As ItemFieldDictionary
Dim key As UInteger
Dim value As ItemField
Dim returnValue As Boolean

returnValue = instance.TryGetValue(key, _
    value)
public bool TryGetValue(
    uint key,
    out ItemField value
)
public:
virtual bool TryGetValue(
    unsigned int key, 
    [OutAttribute] ItemField^% value
) sealed
abstract TryGetValue : 
        key:uint32 * 
        value:ItemField byref -> bool 
override TryGetValue : 
        key:uint32 * 
        value:ItemField byref -> bool 
public final function TryGetValue(
    key : uint, 
    value : ItemField
) : boolean

Parameters

  • value
    Type: Microsoft.Synchronization.SimpleProviders.ItemField%
    When this method returns, contains the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.

Return Value

Type: System.Boolean
true if an ItemField object with the specified key exists in the ItemFieldDictionary collection; otherwise false.

Implements

IDictionary<TKey, TValue>.TryGetValue(TKey, TValue%)

See Also

Reference

ItemFieldDictionary Class

Microsoft.Synchronization.SimpleProviders Namespace