Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
type
Type: Microsoft.Office.Server.UserProfiles.ProfileTypeOne of the ProfileType values. Possible values are Group, User, or Organization.
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.