Sdílet prostřednictvím


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
public final boolean TryGetValue (
    UInt32 key, 
    /** @attribute OutAttribute() */ /** @ref */ ItemField value
)
JScript does not support passing value-type arguments by reference.

Parameters

  • key
    The key of the value to get.
  • value
    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

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

See Also

Reference

ItemFieldDictionary Class
ItemFieldDictionary Members
Microsoft.Synchronization.SimpleProviders Namespace