다음을 통해 공유


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