PropertyCollection.RemoveByName method
NOTE: This API is now obsolete.
Removes a property or section object from the user profile database by name.
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 RemoveByName ( _
strName As String, _
fIsSection As Boolean _
)
'Usage
Dim instance As PropertyCollection
Dim strName As String
Dim fIsSection As Boolean
instance.RemoveByName(strName, fIsSection)
[ObsoleteAttribute("PropertyCollection is replaced by ProfileSubtypePropertyManager.")]
public void RemoveByName(
string strName,
bool fIsSection
)
Parameters
strName
Type: System.StringThe name of the property or section object to be removed from the user profile database.
fIsSection
Type: System.Booleantrue if this property is a section; otherwise, false.