Length Property

The Length property of the Property class gets or sets the maximum data length of the property of the user profile.

Property Value

Int32 The maximum data length of the return value of the user profile property according to the data type.


Exception Type Condition
UpdateReadOnlyFieldException Data length cannot be updated, it can only be set when creating a new property.


The property type and length can be set for a new property only . Otherwise, an UpdateReadOnlyFieldException will be thrown.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security