ColleagueManager.Create(UserProfile, ColleagueGroupType, String, Boolean, Privacy) Method

Definition

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

public:
 Microsoft::Office::Server::UserProfiles::Colleague ^ Create(Microsoft::Office::Server::UserProfiles::UserProfile ^ colleague, Microsoft::Office::Server::UserProfiles::ColleagueGroupType colleagueGroupType, System::String ^ strGroup, bool isInWorkgroup, Microsoft::Office::Server::UserProfiles::Privacy privacyLevel);
public Microsoft.Office.Server.UserProfiles.Colleague Create (Microsoft.Office.Server.UserProfiles.UserProfile colleague, Microsoft.Office.Server.UserProfiles.ColleagueGroupType colleagueGroupType, string strGroup, bool isInWorkgroup, Microsoft.Office.Server.UserProfiles.Privacy privacyLevel);
member this.Create : Microsoft.Office.Server.UserProfiles.UserProfile * Microsoft.Office.Server.UserProfiles.ColleagueGroupType * string * bool * Microsoft.Office.Server.UserProfiles.Privacy -> Microsoft.Office.Server.UserProfiles.Colleague

Parameters

colleague
UserProfile

The UserProfile object of the colleague.

colleagueGroupType
ColleagueGroupType

One of the following: Peer, UserSpecified, or General.

strGroup
String

The name of the group the colleague should be under.

isInWorkgroup
Boolean

Determines whether the colleague should be part of a work group.

privacyLevel
Privacy

The privacy level of the colleague.

Returns

Colleague

A newly created Colleague object.

Applies to