Name Property

The Name property of the Property class gets or sets the property name that uniquely identifies this user profile property for this site and in the user profile database.

Property Value

String the property name that uniquely identifies this user profile property for this site and in the user profile database.

Exceptions

Exception Type Condition
UpdateReadOnlyFieldException Only an administrator can update a user profile property definition
PropertyInvalidValueException Name needs to be valid URI schema name.

Remarks

For regular properties, the Name property can only be set at creation time. No further update is allowed. If there is an attempt to update a property, an UPUpdateReadOnlyFieldException is thrown. The Name property is used to compose the URI of the property. Therefore the name must be a valid URI schema name, otherwise, an UPInvalidValueException is thrown.

Requirements

Platforms: Microsoft Windows Server 2003

Security: Code Access Security