UserProfile.GetMyOrganizations method

NOTE: This API is now obsolete.

Returns an array of organization profiles representing organizations to which this user directly belongs.

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 GetMyOrganizations As OrganizationProfile()
'Usage
Dim instance As UserProfile
Dim returnValue As OrganizationProfile()

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

Return value

Type: []
An array of organization profiles representing organizations to which this user directly belongs.

Remarks

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

GetMyOrganizations overload

Microsoft.Office.Server.UserProfiles namespace