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