Compartilhar via


Método DataCollection.TryGetValue

Aplica-se a: CRM 2015 on-prem, CRM Online

Gets the value associated with the specified key.

Namespace: Microsoft.Xrm.Sdk
Assembly: Microsoft.Xrm.Sdk (em Microsoft.Xrm.Sdk.dll)

Sintaxe

'Declaração
Public Function TryGetValue ( _
    key As TKey, _
    <OutAttribute> ByRef value As TValue _
) As Boolean
public bool TryGetValue (
    TKey key,
    out TValue value
)

Parâmetros

  • 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.

Valor de Retorno

Type: Booleano
true if the DataCollection contains an element with the specified key; otherwise, false.

Segurança do Thread

Todos os membros estáticos (Shared in Visual Basic) desse tipo são protegidos por thread. Não há nenhum garantia de que os membros de instância sejam protegidos por thread.

Plataformas

Plataformas de desenvolvimento

Windows Vista, Windows Server 2003 e

Plataformas de destino

Windows Vista,Windows XP

Consulte também

Referência

Classe genérica DataCollection
Membros de DataCollection
Namespace Microsoft.Xrm.Sdk

Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.