SfcCollatedDictionaryCollection<T, K, ParentT>.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 中)

语法

声明
Public Function TryGetValue ( _
    key As K, _
    <OutAttribute> ByRef obj As T _
) As Boolean
用法
Dim instance As SfcCollatedDictionaryCollection 
Dim key As K
Dim obj As T
Dim returnValue As Boolean 

returnValue = instance.TryGetValue(key, _
    obj)
public bool TryGetValue(
    K key,
    out T obj
)
public:
bool TryGetValue(
    K key, 
    [OutAttribute] T% obj
)
member TryGetValue : 
        key:'K * 
        obj:'T byref -> bool
public function TryGetValue(
    key : K, 
    obj : T
) : boolean

参数

  • key
    类型:K
    The key of the value to get.
  • obj
    类型: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.

返回值

类型:System.Boolean
true if the collection contains an element with the specified key; otherwise, false.

请参阅

参考

SfcCollatedDictionaryCollection<T, K, ParentT> 类

Microsoft.SqlServer.Management.Sdk.Sfc 命名空间