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.

Exceptions

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

Remarks

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

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security