OrganizationProfileManager.CreateOrganizationProfile Method
Creates an organization profile with the specified ProfileSubtype and the specified ProfileBase.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Function CreateOrganizationProfile ( _
subtype As ProfileSubtype, _
parentProfile As ProfileBase _
) As OrganizationProfile
'Usage
Dim instance As OrganizationProfileManager
Dim subtype As ProfileSubtype
Dim parentProfile As ProfileBase
Dim returnValue As OrganizationProfile
returnValue = instance.CreateOrganizationProfile(subtype, _
parentProfile)
public OrganizationProfile CreateOrganizationProfile(
ProfileSubtype subtype,
ProfileBase parentProfile
)
Parameters
- subtype
Type: Microsoft.Office.Server.UserProfiles.ProfileSubtype
- parentProfile
Type: Microsoft.Office.Server.UserProfiles.ProfileBase
Return Value
Type: Microsoft.Office.Server.UserProfiles.OrganizationProfile
Remarks
Only users with user profile administrative permissions are allowed to create organization profiles.
See Also
Reference
OrganizationProfileManager Class