Type Property

The Type property of the Property class gets or sets the name of the property data type of the user profile property.

Property Value

String The friendly name of the type of the user profile property.


Exception Type Condition
UpdateReadOnlyFieldException Property data type cannot be updated, it can only be set when creating a new property.


The property data type can be set for a new property only. Otherwise, an UpdateReadOnlyFieldException will be thrown. The Type property can contain one of the following data types: big integer, boolean, date, date time, Email, float, HTML, integer, Person, string, unique identifier, URL, or binary.


Platforms: Microsoft Windows Server 2003

Security: Code Access Security