Partager via


Propriété MoneyAttributeMetadata.PrecisionSource

S'applique à: CRM 2015 on-prem, CRM Online

Gets or sets the precision source for the attribute.

Espace de noms: Microsoft.Xrm.Sdk.Metadata
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)

Syntaxe

'Déclaration
<DataMemberAttribute> _
Public Property PrecisionSource As Nullable(Of Integer)
[DataMemberAttribute] 
public Nullable<int> PrecisionSource { get; set; }

Valeur de propriété

Type: Autorise la valeur Null<Int32>
The precision source for the attribute.

Remarques

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.

Cohérence de thread

Tous les membres statiques publics (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres d'instance ne sont pas garantis thread-safe.

Plateformes

Plateformes de développement

Windows Vista, Windows Server 2003 et

Plateformes cibles

Windows Vista,Windows XP

Voir aussi

Référence

Classe MoneyAttributeMetadata
Membres MoneyAttributeMetadata
Espace de noms Microsoft.Xrm.Sdk.Metadata

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