UserProfile.GetMyOrganizationChains method

NOTE: This API is now obsolete.

Returns an array of organization profiles, including child organizations.

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

Syntax

'Declaration
<ObsoleteAttribute("This method is no longer supported.")> _
Public Function GetMyOrganizationChains As OrganizationProfile()
'Usage
Dim instance As UserProfile
Dim returnValue As OrganizationProfile()

returnValue = instance.GetMyOrganizationChains()
[ObsoleteAttribute("This method is no longer supported.")]
public OrganizationProfile[] GetMyOrganizationChains()

Return value

Type: []
An array of organization profiles, including child organizations.

Remarks

For example, if this user is a member of Organization A and Organization B is a parent of Organization A, then this method will return both A and B. If the method returns a a null reference (Nothing in Visual Basic) value, then the user is not a member of any organization.

See also

Reference

UserProfile class

UserProfile members

Microsoft.Office.Server.UserProfiles namespace