Metodo DataCollection.TryGetValue
Si applica a: CRM 2015 on-prem, CRM Online
Gets the value associated with the specified key.
Spazio dei nomi: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (in Microsoft.Xrm.Sdk.dll)
Sintassi
'Dichiarazione
Public Function TryGetValue ( _
key As TKey, _
<OutAttribute> ByRef value As TValue _
) As Boolean
public bool TryGetValue (
TKey key,
out TValue value
)
Parametri
- key
Type: TKey. The key of the value to get.
- value
Type: TValue%. 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.
Valore restituito
Type: Booleano
true if the DataCollection contains an element with the specified key; otherwise, false.
Thread Safety
Tutti i membri statici pubblici (Shared in Visual Basic) di questo tipo sono thread-safe. Non è garantito che i membri di istanza siano thread-safe.
Piattaforme
Piattaforme di sviluppo
Windows Vista, Windows Server 2003 e
Piattaforme di destinazione
Windows Vista,Windows XP
Vedere anche
Riferimento
Classe generica DataCollection
Membri DataCollection
Spazio dei nomi Microsoft.Xrm.Sdk
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.