Share via


PropertyCollection.GetPropertyByName Method

Gets a property by name.

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

Syntax

'Declaration
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)
public Property GetPropertyByName(
    string strPropName
)

Parameters

Return Value

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

See Also

Reference

PropertyCollection Class

PropertyCollection Members

Microsoft.Office.Server.UserProfiles Namespace