ColleagueManager.Create 方法

为指定的类型和隐私级别创建一个Colleague对象。

命名空间:  Microsoft.Office.Server.UserProfiles
程序集:  Microsoft.Office.Server.UserProfiles(位于 Microsoft.Office.Server.UserProfiles.dll 中)

语法

声明
Public Function Create ( _
    colleague As UserProfile, _
    colleagueGroupType As ColleagueGroupType, _
    strGroup As String, _
    isInWorkgroup As Boolean, _
    privacyLevel As Privacy _
) As Colleague
用法
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
)

参数

  • strGroup
    类型:System.String

    组的名称的同事应该下。

  • isInWorkgroup
    类型:System.Boolean

    确定该同事是否应为工作组的一部分。

返回值

类型:Microsoft.Office.Server.UserProfiles.Colleague
一个新创建的Colleague对象。

另请参阅

引用

ColleagueManager 类

ColleagueManager 成员

Microsoft.Office.Server.UserProfiles 命名空间