ProfileSubtypeManager.GetDefaultProfileName method

Retrieves the name of the default subtype for the specified profile type.

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

public static string GetDefaultProfileName(
	ProfileType type
)

Parameters

type
Type: Microsoft.Office.Server.UserProfiles.ProfileType

One of the ProfileType values. Possible values are Group, User, or Organization.

Return value

Type: System.String
One of following strings:
  • UserProfile

  • OrganizationProfile

  • GroupProfile

ExceptionCondition
UserProfileException

type is not one of the values of ProfileType.

You can use the returned subtype name as the parameter value to the GetProfileSubtype(String) method to retrieve the corresponding ProfileSubtype object.

Show: