IReadOnlyDictionary<K, T>.TryGetValue 메서드
Gets the value associated with the specified key.
네임스페이스: Microsoft.SqlServer.Management.Sdk.Sfc
어셈블리: Microsoft.SqlServer.Management.Sdk.Sfc(Microsoft.SqlServer.Management.Sdk.Sfc.dll)
구문
‘선언
Function TryGetValue ( _
key As K, _
<OutAttribute> ByRef value As T _
) As Boolean
‘사용 방법
Dim instance As IReadOnlyDictionary
Dim key As K
Dim value As T
Dim returnValue As Boolean
returnValue = instance.TryGetValue(key, _
value)
bool TryGetValue(
K key,
out T value
)
bool TryGetValue(
K key,
[OutAttribute] T% value
)
abstract TryGetValue :
key:'K *
value:'T byref -> bool
function TryGetValue(
key : K,
value : T
) : boolean
매개 변수
- key
유형: K
The key of the value to get.
- value
유형: T%
When this method returns, 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.
반환 값
유형: System.Boolean
true if the specified key is found in the dictionary; otherwise, false.