Share via


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)

Syntax

'Declaration
Public Shared Function GetDefaultProfileName ( _
    type As ProfileType _
) As String
'Usage
Dim type As ProfileType
Dim returnValue As String

returnValue = ProfileSubtypeManager.GetDefaultProfileName(type)
public static string GetDefaultProfileName(
    ProfileType type
)

Parameters

Return value

Type: System.String

One of following strings:

  • UserProfile

  • OrganizationProfile

  • GroupProfile

Exceptions

Exception Condition
UserProfileException

type is not one of the values of ProfileType.

Remarks

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

See also

Reference

ProfileSubtypeManager class

ProfileSubtypeManager members

Microsoft.Office.Server.UserProfiles namespace