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
strPropName
Type: System.StringThe name of the property.
Return Value
Type: Microsoft.Office.Server.UserProfiles.Property
The that contains the Property object.