다음을 통해 공유


UserProfile.GetMyOrganizationChains Method

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

returnValue = instance.GetMyOrganizationChains()
public OrganizationProfile[] GetMyOrganizationChains()

Return Value

Type: []

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