Share via


ColleagueManager.Create Method

Creates a Colleague object with the specified type and privacy level.

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

Syntax

'Declaration
Public Function Create ( _
    colleague As UserProfile, _
    colleagueGroupType As ColleagueGroupType, _
    strGroup As String, _
    isInWorkgroup As Boolean, _
    privacyLevel As Privacy _
) As Colleague
'Usage
Dim instance As ColleagueManager
Dim colleague As UserProfile
Dim colleagueGroupType As ColleagueGroupType
Dim strGroup As String
Dim isInWorkgroup As Boolean
Dim privacyLevel As Privacy
Dim returnValue As Colleague

returnValue = instance.Create(colleague, _
    colleagueGroupType, strGroup, isInWorkgroup, _
    privacyLevel)
public Colleague Create(
    UserProfile colleague,
    ColleagueGroupType colleagueGroupType,
    string strGroup,
    bool isInWorkgroup,
    Privacy privacyLevel
)

Parameters

  • strGroup
    Type: System.String
    The name of the group the colleague should be under.
  • isInWorkgroup
    Type: System.Boolean
    Determines whether the colleague should be part of a work group.

Return Value

Type: Microsoft.Office.Server.UserProfiles.Colleague
A newly created Colleague object.

See Also

Reference

ColleagueManager Class

ColleagueManager Members

Microsoft.Office.Server.UserProfiles Namespace