Property.Name Property

Gets or sets the property name that uniquely identifies this user profile property for this site and in the user profile database.

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

Syntax

'Declaration
Public Property Name As String
    Get
    Set
'Usage
Dim instance As [Property]
Dim value As String

value = instance.Name

instance.Name = value
public string Name { get; set; }

Property Value

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

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.

See Also

Reference

Property Class

Property Members

Microsoft.Office.Server.UserProfiles Namespace