ProfileSubtypeManager.Get method (SPServiceContext)
Retrieves the ProfileSubtypeManager object for the specified SPServiceContext.
Namespace: Microsoft.Office.Server.UserProfiles
Assembly: Microsoft.Office.Server.UserProfiles (in Microsoft.Office.Server.UserProfiles.dll)
Syntax
'Declaration
Public Shared Function Get ( _
serviceContext As SPServiceContext _
) As ProfileSubtypeManager
'Usage
Dim serviceContext As SPServiceContext
Dim returnValue As ProfileSubtypeManager
returnValue = ProfileSubtypeManager.Get(serviceContext)
public static ProfileSubtypeManager Get(
SPServiceContext serviceContext
)
Parameters
serviceContext
Type: Microsoft.SharePoint.SPServiceContextThe SPServiceContext object for which to retrieve the ProfileSubtypeManager object.
Return value
Type: Microsoft.Office.Server.UserProfiles.ProfileSubtypeManager
The ProfileSubtypeManager object for the specified SPServiceContext.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | The serviceContext parameter is a null reference (Nothing in Visual Basic). |