Propriété StringAttributeMetadata.MaxLength
S'applique à: CRM 2015 on-prem, CRM Online
Gets or sets the maximum length for the string.
Espace de noms: Microsoft.Xrm.Sdk.Metadata
Assembly: Microsoft.Xrm.Sdk (dans Microsoft.Xrm.Sdk.dll)
Syntaxe
'Déclaration
<DataMemberAttribute> _
Public Property MaxLength As Nullable(Of Integer)
[DataMemberAttribute]
public Nullable<int> MaxLength { get; set; }
Valeur de propriété
Type: Autorise la valeur Null<int>
The maximum length.
Remarques
Required For Create.
Increasing the maximum length of an attribute that is the source field for an attribute mapping may cause truncation of data or errors when a solution containing these attributes is imported into another system. When you increase the MaxLength of an attribute, check whether any other attributes are mapped to it and ensure that the maximum length of any attributes that are the target in the mapping are an equal or longer length. For more information, see Using Entity and Attribute Mapping Data.
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 StringAttributeMetadata
Membres StringAttributeMetadata
Espace de noms Microsoft.Xrm.Sdk.Metadata
Send comments about this topic to Microsoft.
© 2014 Microsoft Corporation. All rights reserved.