다음을 통해 공유


ItemFieldDictionary.TryGetValue 메서드

지정된 키와 연결된 값을 가져옵니다.

네임스페이스: Microsoft.Synchronization.SimpleProviders
어셈블리: microsoft.synchronization.simpleproviders.dll의 Microsoft.Synchronization.SimpleProviders

구문

‘선언
Public Function TryGetValue ( _
    key As UInteger, _
    <OutAttribute> ByRef value As ItemField _
) As Boolean
‘사용 방법
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.

매개 변수

  • key
    가져올 값의 키입니다.
  • value
    이 메서드가 반환될 때 지정된 키가 있으면 해당 키와 연결된 값이 포함되고, 그렇지 않으면 value 매개 변수 형식의 기본값이 포함됩니다. 이 매개 변수는 초기화되지 않은 상태로 전달됩니다.

반환 값

지정된 키의 ItemField 개체가 ItemFieldDictionary 컬렉션에 있으면 true이고, 그렇지 않으면 false입니다.

참고 항목

참조

ItemFieldDictionary 클래스
ItemFieldDictionary 멤버
Microsoft.Synchronization.SimpleProviders 네임스페이스