Partilhar via


Propriedade MoneyAttributeMetadata.PrecisionSource

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

Gets or sets the precision source for the attribute.

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

Sintaxe

'Declaração
<DataMemberAttribute> _
Public Property PrecisionSource As Nullable(Of Integer)
[DataMemberAttribute] 
public Nullable<int> PrecisionSource { get; set; }

Valor de Propriedade

Type: Anulável<Int32>
The precision source for the attribute.

Comentários

If this property is not assigned a value, it defaults to 2.

For most money fields the precision comes from the Precision property. However, for money fields related to price, the precision come from the organization.pricingdecimalprecision. For money fields which use another currency the TransactionCurrency. CurrencyPrecision may be used.

Valid values for this property are:

Value Description

0

Precision specified in the MoneyAttributeMetadata. Precision property should be used.

1

Precision specified in Organization. PricingDecimalPrecision attribute should be used.

2

Precision specified in the TransactionCurrency. CurrencyPrecision property of the transaction currency that is associated the current record.

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 MoneyAttributeMetadata
Membros de MoneyAttributeMetadata
Namespace Microsoft.Xrm.Sdk.Metadata

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