Share via


PropertyCollection.RemovePropertyByName method

NOTE: This API is now obsolete.

Removes the property from the user profile database by the name of the property.

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

Syntax

'Declaration
<ObsoleteAttribute("PropertyCollection is replaced by ProfileSubtypePropertyManager.")> _
Public Sub RemovePropertyByName ( _
    strPropName As String _
)
'Usage
Dim instance As PropertyCollection
Dim strPropName As String

instance.RemovePropertyByName(strPropName)
[ObsoleteAttribute("PropertyCollection is replaced by ProfileSubtypePropertyManager.")]
public void RemovePropertyByName(
    string strPropName
)

Parameters

  • strPropName
    Type: System.String

    The name of the property to be removed from the user profile database.

See also

Reference

PropertyCollection class

PropertyCollection members

Microsoft.Office.Server.UserProfiles namespace