Share via


PropertyCollection.GetPropertyByName method

NOTE: This API is now obsolete.

Gets a property 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 Function GetPropertyByName ( _
    strPropName As String _
) As Property
'Usage
Dim instance As PropertyCollection
Dim strPropName As String
Dim returnValue As [Property]

returnValue = instance.GetPropertyByName(strPropName)
[ObsoleteAttribute("PropertyCollection is replaced by ProfileSubtypePropertyManager.")]
public Property GetPropertyByName(
    string strPropName
)

Parameters

Return value

Type: Microsoft.Office.Server.UserProfiles.Property
The that contains the Property object.

See also

Reference

PropertyCollection class

PropertyCollection members

Microsoft.Office.Server.UserProfiles namespace