Share via


Property.Length Property

Gets or sets the maximum data length of the property of the user profile.

Namespace:  Microsoft.Office.Server.UserProfiles
Assembly:  Microsoft.Office.Server (in Microsoft.Office.Server.dll)

Syntax

'Declaration
Public Property Length As Integer
    Get
    Set
'Usage
Dim instance As [Property]
Dim value As Integer

value = instance.Length

instance.Length = value
public int Length { get; set; }

Property Value

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

Remarks

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

See Also

Reference

Property Class

Property Members

Microsoft.Office.Server.UserProfiles Namespace